MutableEntityTypeExtensions.FindDeclaredNavigation 方法

定義

取得指定實體類型的導覽屬性。 不會傳回基底類型上定義的導覽屬性。 如果找不到導覽屬性,則傳 null 回 。

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

參數

entityType
IMutableEntityType

實體類型。

name
String

實體類別上的導覽屬性名稱。

傳回

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

適用於