IConventionRelationshipBuilder.CanInvert Methode

Definition

Gibt einen Wert zurück, der angibt, ob der Prinzipal- und abhängige Entitätstyp von der aktuellen Konfigurationsquelle gewechselt werden kann.

public bool CanInvert (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> newForeignKeyProperties, bool fromDataAnnotation = false);
abstract member CanInvert : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> * bool -> bool
Public Function CanInvert (newForeignKeyProperties As IReadOnlyList(Of IConventionProperty), Optional fromDataAnnotation As Boolean = false) As Boolean

Parameter

newForeignKeyProperties
IReadOnlyList<IConventionProperty>

Die Eigenschaften, die als neuer Fremdschlüssel oder null zur Verwendung kompatibler Eigenschaften verwendet werden sollen.

fromDataAnnotation
Boolean

Gibt an, ob die Konfiguration mithilfe einer Datenanmerkung angegeben wurde.

Gibt zurück

true , wenn der Prinzipal- und der abhängige Entitätstyp gewechselt werden können.

Gilt für: