CoreStrings.DerivedEntityTypeKey(Object, Object) Method

Definition

A key cannot be configured on '{derivedType}' because it is a derived type. The key must be configured on the root type '{rootType}'. 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, or referenced from a navigation on a type that is included in the model.

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

Parameters

derivedType
Object
rootType
Object

Returns

Applies to