CoreStrings.ForeignKeyPropertyInKey(Object, 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 property '{property}' cannot be part of a foreign key on '{entityType}' because it has a store-generated value and is contained in the key {keyProperties} defined on a base entity type '{baseEntityType}'. Configure '{property}' with 'ValueGeneratedNever' or define the foreign key on '{entityType}' instead.
public static string ForeignKeyPropertyInKey (object property, object entityType, object key, object baseEntityType);
public static string ForeignKeyPropertyInKey (object property, object entityType, object keyProperties, object baseEntityType);
public static string ForeignKeyPropertyInKey (object? property, object? entityType, object? keyProperties, object? baseEntityType);
static member ForeignKeyPropertyInKey : obj * obj * obj * obj -> string
static member ForeignKeyPropertyInKey : obj * obj * obj * obj -> string
Public Shared Function ForeignKeyPropertyInKey (property As Object, entityType As Object, key As Object, baseEntityType As Object) As String
Public Shared Function ForeignKeyPropertyInKey (property As Object, entityType As Object, keyProperties As Object, baseEntityType As Object) As String
Parameters
- property
- Object
- entityType
- Object
- keykeyProperties
- Object
- baseEntityType
- 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