CoreStrings.DerivedEntityTypeKey(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.
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
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for