MutableEntityTypeExtensions.FindNavigation 方法

定義

多載

FindNavigation(IMutableEntityType, MemberInfo)

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

FindNavigation(IMutableEntityType, PropertyInfo)

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

FindNavigation(IMutableEntityType, String)

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

FindNavigation(IMutableEntityType, MemberInfo)

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

public static Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation FindNavigation (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, System.Reflection.MemberInfo memberInfo);
static member FindNavigation : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation
<Extension()>
Public Function FindNavigation (entityType As IMutableEntityType, memberInfo As MemberInfo) As IMutableNavigation

參數

entityType
IMutableEntityType

實體類型。

memberInfo
MemberInfo

實體類別上的導覽屬性。

傳回

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

適用於

FindNavigation(IMutableEntityType, PropertyInfo)

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

public static Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation FindNavigation (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, System.Reflection.PropertyInfo propertyInfo);
static member FindNavigation : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * System.Reflection.PropertyInfo -> Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation
<Extension()>
Public Function FindNavigation (entityType As IMutableEntityType, propertyInfo As PropertyInfo) As IMutableNavigation

參數

entityType
IMutableEntityType

要尋找巡覽屬性的實體類型。

propertyInfo
PropertyInfo

實體類別上的導覽屬性。

傳回

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

適用於

FindNavigation(IMutableEntityType, String)

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

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

參數

entityType
IMutableEntityType

實體類型。

name
String

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

傳回

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

適用於