CoreStrings.DerivedEntityTypeHasNoKey(Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
'{derivedType}' cannot be configured as keyless because it is a derived type; the root type '{rootType}' must be configured as keyless instead. If you did not intend for '{rootType}' to be included in the model, ensure that it is not referenced by a DbSet property on your context, referenced in a configuration call to ModelBuilder in 'OnModelCreating', or referenced from a navigation on a type that is included in the model. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.
public static string DerivedEntityTypeHasNoKey (object derivedType, object rootType);
public static string DerivedEntityTypeHasNoKey (object? derivedType, object? rootType);
static member DerivedEntityTypeHasNoKey : obj * obj -> string
Public Shared Function DerivedEntityTypeHasNoKey (derivedType As Object, rootType As Object) As String
Parameters
- derivedType
- Object
- rootType
- Object
Returns
Applies to
Entity Framework