ConventionEntityTypeExtensions.FindDeclaredProperty 方法

定義

尋找在具有指定名稱之型別上宣告的屬性。 不會傳回基底類型上定義的屬性。

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

參數

entityType
IConventionEntityType

實體類型。

name
String

屬性名稱。

傳回

如果找不到屬性,則 null 為 。

適用於