Język

CoreStrings.AmbiguousServiceProperty(Object, Object, Object) Metoda

Definicja

Nie można dodać właściwości usługi {property} typu "{serviceType}" do typu jednostki "{entityType}", ponieważ istnieje inna właściwość tego samego typu. Ignoruj jedną z właściwości przy użyciu atrybutu [NotMapped] lub "EntityTypeBuilder.Ignore" w obszarze "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

Parametry

property
Object
serviceType
Object
entityType
Object

Zwraca

Dotyczy