EntityTypeExtensions.FindDeclaredProperty(IEntityType, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
尋找在具有指定名稱之型別上宣告的屬性。 不會傳回基底類型上定義的屬性。
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
。