CoreStrings.FkAttributeOnNonUniquePrincipal(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 [ForeignKey] attribute for the navigation '{navigation}' cannot be specified on the entity type '{principalType}' since it represents a one-to-many relationship. Move the [ForeignKey] attribute to a property on '{dependentType}'.
public static string FkAttributeOnNonUniquePrincipal (object navigation, object principalType, object dependentType);
public static string FkAttributeOnNonUniquePrincipal (object? navigation, object? principalType, object? dependentType);
static member FkAttributeOnNonUniquePrincipal : obj * obj * obj -> string
Public Shared Function FkAttributeOnNonUniquePrincipal (navigation As Object, principalType As Object, dependentType As Object) As String
Parameters
- navigation
- Object
- principalType
- Object
- dependentType
- 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