Dela via


IConventionForeignKey.SetIsOwnership(Nullable<Boolean>, Boolean) Method

Definition

Sets a value indicating whether this relationship defines an ownership. If true, the dependent entity must always be accessed via the navigation from the principal entity.

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

Parameters

ownership
Nullable<Boolean>

A value indicating whether this relationship defines an ownership.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configured ownership.

Applies to