MutableEntityTypeExtensions.FindDeclaredProperty 方法

定義

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

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

參數

entityType
IMutableEntityType

實體類型。

name
String

屬性名稱。

傳回

如果找不到屬性,則為 null

適用於