CoreStrings.MissingInverseManyToManyNavigation(Object, Object) Method

Definition

Unable to set up a many-to-many relationship between the entity types '{principalEntityType}' and '{declaringEntityType}' because one of the navigations was not specified. Provide a navigation in the 'HasMany' call in 'OnModelCreating'. Consider adding a private property for this.

C#
public static string MissingInverseManyToManyNavigation (object principalEntityType, object declaringEntityType);
C#
public static string MissingInverseManyToManyNavigation (object? principalEntityType, object? declaringEntityType);

Parameters

principalEntityType
Object
declaringEntityType
Object

Returns

Applies to

Product Versions
Entity Framework Core 5.0, 6.0