CoreStrings.CompositeFkOnProperty(Object, Object) Method

Definition

There are multiple properties with the [ForeignKey] attribute pointing to navigation '{1_entityType}.{0_navigation}'. To define a composite foreign key using data annotations, use the [ForeignKey] attribute on the navigation.

C#
public static string CompositeFkOnProperty (object navigation, object entityType);
C#
public static string CompositeFkOnProperty (object? navigation, object? entityType);

Parameters

navigation
Object
entityType
Object

Returns

Applies to

Product Versions
Entity Framework Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0