CoreStrings.OwnershipToDependent(Object, Object, Object) Method

Definition

The navigation '{navigation}' cannot be changed, because the foreign key between '{principalEntityType}' and '{dependentEntityType}' is an ownership. To change the navigation to the owned entity type remove the ownership.

C#
public static string OwnershipToDependent (object? navigation, object? principalEntityType, object? dependentEntityType);

Parameters

navigation
Object
principalEntityType
Object
dependentEntityType
Object

Returns

Applies to

Product Versions
Entity Framework Core 6.0, 7.0, 8.0, 9.0