語言

IConventionForeignKeyBuilder.CanSetNavigation 方法

定義

多載

名稱 Description
CanSetNavigation(MemberInfo, Boolean, Boolean)

回傳一個值,指示該屬性是否能作為目前配置來源中此關係的導航。

CanSetNavigation(String, Boolean, Boolean)

回傳一個值,指示該屬性是否能作為目前配置來源中此關係的導航。

CanSetNavigation(MemberInfo, Boolean, Boolean)

來源:
IConventionForeignKeyBuilder.cs
來源:
IConventionForeignKeyBuilder.cs
來源:
IConventionForeignKeyBuilder.cs
來源:
IConventionForeignKeyBuilder.cs
來源:
IConventionForeignKeyBuilder.cs

回傳一個值,指示該屬性是否能作為目前配置來源中此關係的導航。

public bool CanSetNavigation(System.Reflection.MemberInfo? property, bool pointsToPrincipal, bool fromDataAnnotation = false);
public bool CanSetNavigation(System.Reflection.MemberInfo property, bool pointsToPrincipal, bool fromDataAnnotation = false);
abstract member CanSetNavigation : System.Reflection.MemberInfo * bool * bool -> bool
Public Function CanSetNavigation (property As MemberInfo, pointsToPrincipal As Boolean, Optional fromDataAnnotation As Boolean = false) As Boolean

參數

property
MemberInfo

該用的房產。

pointsToPrincipal
Boolean

一個值表示導覽是否在指向主型的依賴型態上。

fromDataAnnotation
Boolean

表示配置是否以資料註解方式指定。

傳回

true 是否該性質可用作導航。

適用於

CanSetNavigation(String, Boolean, Boolean)

來源:
IConventionForeignKeyBuilder.cs
來源:
IConventionForeignKeyBuilder.cs
來源:
IConventionForeignKeyBuilder.cs
來源:
IConventionForeignKeyBuilder.cs
來源:
IConventionForeignKeyBuilder.cs

回傳一個值,指示該屬性是否能作為目前配置來源中此關係的導航。

public bool CanSetNavigation(string? name, bool pointsToPrincipal, bool fromDataAnnotation = false);
public bool CanSetNavigation(string name, bool pointsToPrincipal, bool fromDataAnnotation = false);
abstract member CanSetNavigation : string * bool * bool -> bool
Public Function CanSetNavigation (name As String, pointsToPrincipal As Boolean, Optional fromDataAnnotation As Boolean = false) As Boolean

參數

name
String

要用的房產名稱。

pointsToPrincipal
Boolean

一個值表示導覽是否在指向主型的依賴型態上。

fromDataAnnotation
Boolean

表示配置是否以資料註解方式指定。

傳回

true 是否該性質可用作導航。

適用於