EntityTypeExtensions.FindProperty Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
FindProperty(IEntityType, MemberInfo) |
Gets a property with the given member info. Returns This API only finds scalar properties and does not find navigation properties. Use FindNavigation(IEntityType, MemberInfo) to find a navigation property. |
FindProperty(IEntityType, PropertyInfo) |
Gets a property on the given entity type. Returns null if no property is found. This API only finds scalar properties and does not find navigation properties. Use FindNavigation(IEntityType, PropertyInfo) to find a navigation property. |
FindProperty(IEntityType, MemberInfo)
Gets a property with the given member info. Returns null
if no property is found.
This API only finds scalar properties and does not find navigation properties. Use FindNavigation(IEntityType, MemberInfo) to find a navigation property.
public static Microsoft.EntityFrameworkCore.Metadata.IProperty FindProperty (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, System.Reflection.MemberInfo memberInfo);
static member FindProperty : Microsoft.EntityFrameworkCore.Metadata.IEntityType * System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.IProperty
<Extension()>
Public Function FindProperty (entityType As IEntityType, memberInfo As MemberInfo) As IProperty
Parameters
- entityType
- IEntityType
The entity type.
- memberInfo
- MemberInfo
The member on the entity class.
Returns
The property, or null
if none is found.
Applies to
FindProperty(IEntityType, PropertyInfo)
Gets a property on the given entity type. Returns null if no property is found.
This API only finds scalar properties and does not find navigation properties. Use FindNavigation(IEntityType, PropertyInfo) to find a navigation property.
public static Microsoft.EntityFrameworkCore.Metadata.IProperty FindProperty (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, System.Reflection.PropertyInfo propertyInfo);
static member FindProperty : Microsoft.EntityFrameworkCore.Metadata.IEntityType * System.Reflection.PropertyInfo -> Microsoft.EntityFrameworkCore.Metadata.IProperty
<Extension()>
Public Function FindProperty (entityType As IEntityType, propertyInfo As PropertyInfo) As IProperty
Parameters
- entityType
- IEntityType
The entity type to find the property on.
- propertyInfo
- PropertyInfo
The property on the entity class.
Returns
The property, or null if none is found.
Applies to
Entity Framework