Sprache

IConventionForeignKeyBuilder.CanInvert Methode

Definition

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

public bool CanInvert(System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty>? newForeignKeyProperties, bool fromDataAnnotation = false);
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 verwendet werden sollen oder null um kompatible Eigenschaften zu verwenden.

fromDataAnnotation
Boolean

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

Gibt zurück

true wenn die Prinzipal- und abhängigen Entitätstypen umgeschaltet werden können.

Gilt für: