Condividi tramite


CoreStrings.KeyAttributeOnDerivedEntity Metodo

Definizione

Overload

KeyAttributeOnDerivedEntity(Object, Object)

Il tipo derivato '{derivedType}' non può avere l'attributo [Key] sulla proprietà '{property}' perché le chiavi primarie possono essere dichiarate solo nel tipo radice.

KeyAttributeOnDerivedEntity(Object, Object, Object)

Il tipo derivato '{derivedType}' non può avere l'attributo [Key] sulla proprietà '{property}' perché le chiavi primarie possono essere dichiarate solo nel tipo radice. Spostare la proprietà '{property}' su '{rootType}' o rimuovere '{rootType}' dal modello usando l'attributo [NotMapped] o chiamando 'EntityTypeBuilder.Ignore' nel tipo di base in 'OnModelCreating'.

KeyAttributeOnDerivedEntity(Object, Object)

Il tipo derivato '{derivedType}' non può avere l'attributo [Key] sulla proprietà '{property}' perché le chiavi primarie possono essere dichiarate solo nel tipo radice.

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

Parametri

derivedType
Object
property
Object

Restituisce

Si applica a

KeyAttributeOnDerivedEntity(Object, Object, Object)

Il tipo derivato '{derivedType}' non può avere l'attributo [Key] sulla proprietà '{property}' perché le chiavi primarie possono essere dichiarate solo nel tipo radice. Spostare la proprietà '{property}' su '{rootType}' o rimuovere '{rootType}' dal modello usando l'attributo [NotMapped] o chiamando 'EntityTypeBuilder.Ignore' nel tipo di base in 'OnModelCreating'.

public static string KeyAttributeOnDerivedEntity (object? derivedType, object? property, object? rootType);
static member KeyAttributeOnDerivedEntity : obj * obj * obj -> string
Public Shared Function KeyAttributeOnDerivedEntity (derivedType As Object, property As Object, rootType As Object) As String

Parametri

derivedType
Object
property
Object
rootType
Object

Restituisce

Si applica a