Jazyk

CoreStrings.EntityRequiresKey(Object) Metoda

Definice

Typ entity {entityType} vyžaduje, aby byl definován primární klíč. Pokud jste chtěli použít typ entity bez klíčů, zavolejte "HasNoKey" v 'OnModelCreating'. Další informace o typech entit bez klíčů najdete v tématu https://go.microsoft.com/fwlink/?linkid=2141943.

public static string EntityRequiresKey(object? entityType);
public static string EntityRequiresKey(object entityType);
static member EntityRequiresKey : obj -> string
Public Shared Function EntityRequiresKey (entityType As Object) As String

Parametry

entityType
Object

Návraty

Platí pro