EntityTypeExtensions.FindDeclaredProperty(IEntityType, String) 方法

定义

查找在具有给定名称的类型上声明的属性。 不返回在基类型上定义的属性。

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

参数

entityType
IEntityType

实体类型。

name
String

属性名称。

返回

属性;如果未找到任何属性,则为 。null

适用于