ConventionEntityTypeExtensions.FindDeclaredProperty Method

Definition

Finds a property declared on the type with the given name. Does not return properties defined on a base type.

public static Microsoft.EntityFrameworkCore.Metadata.IConventionProperty FindDeclaredProperty (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string name);
static member FindDeclaredProperty : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * string -> Microsoft.EntityFrameworkCore.Metadata.IConventionProperty
<Extension()>
Public Function FindDeclaredProperty (entityType As IConventionEntityType, name As String) As IConventionProperty

Parameters

entityType
IConventionEntityType

The entity type.

name
String

The property name.

Returns

The property, or null if none is found.

Applies to