語言

IConventionForeignKey.SetIsConstrained 方法

定義

設定一個值,表示關係是否受限。

public bool? SetIsConstrained(bool? constrained, bool fromDataAnnotation = false);
abstract member SetIsConstrained : Nullable<bool> * bool -> Nullable<bool>
Public Function SetIsConstrained (constrained As Nullable(Of Boolean), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Boolean)

參數

constrained
Nullable<Boolean>

一個表示關係是否受限的值。

fromDataAnnotation
Boolean

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

傳回

設定值。

適用於