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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Entity Framework