RelationalStrings.EntityShortNameNotUnique(Object, 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.
The short name for '{entityType1}' is '{discriminatorValue}' which is the same for '{entityType2}'. Every concrete entity type in the hierarchy must have a unique short name. Either rename one of the types or call modelBuilder.Entity<TEntity>().Metadata.SetDiscriminatorValue("NewShortName").
public static string EntityShortNameNotUnique (object? entityType1, object? discriminatorValue, object? entityType2);
static member EntityShortNameNotUnique : obj * obj * obj -> string
Public Shared Function EntityShortNameNotUnique (entityType1 As Object, discriminatorValue As Object, entityType2 As Object) As String
Parameters
- entityType1
- Object
- discriminatorValue
- Object
- entityType2
- Object
Returns
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework