Sprache

CoreStrings.AmbiguousServiceProperty(Object, Object, Object) Methode

Definition

Die Diensteigenschaft '{property}' vom Typ '{serviceType}' kann dem Entitätstyp '{entityType}' nicht hinzugefügt werden, da es eine andere Eigenschaft desselben Typs gibt. Ignorieren Sie eine der Eigenschaften mithilfe des [NotMapped]-Attributs oder 'EntityTypeBuilder.Ignore' in 'OnModelCreating'.

public static string AmbiguousServiceProperty(object property, object serviceType, object entityType);
static member AmbiguousServiceProperty : obj * obj * obj -> string
Public Shared Function AmbiguousServiceProperty (property As Object, serviceType As Object, entityType As Object) As String

Parameter

property
Object
serviceType
Object
entityType
Object

Gibt zurück

Gilt für: