IReadOnlyEntityType.GetProperty(String) 方法

定義

取得具有指定名稱的屬性。

public virtual Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty GetProperty (string name);
abstract member GetProperty : string -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty
override this.GetProperty : string -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty
Public Overridable Function GetProperty (name As String) As IReadOnlyProperty

參數

name
String

屬性名稱。

傳回

屬性。

備註

此 API 只會尋找純量屬性,而且找不到導覽屬性。 用來 FindNavigation(String) 尋找導覽屬性。

適用於