Share via


IConventionRelationshipBuilder.CanSetIsOwnership 方法

定義

傳回值,指出此關聯性是否可以設定為從目前的組態來源定義擁有權。

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

參數

ownership
Nullable<Boolean>

值,指出此關聯性是否定義擁有權。 null 要重設為預設值。

fromDataAnnotation
Boolean

指出是否使用資料批註來指定組態。

傳回

true 如果關聯性可以設定為定義擁有權,則為 。

適用於