RelationalStrings.StoredKeyTypesNotConvertable 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 foreign key column '{fkColumnName}' has '{fkColumnType}' values which cannot be compared to the '{pkColumnType}' values of the associated principal key column '{pkColumnName}'. To use 'SaveChanges` or 'SaveChangesAsync', foreign key column types must be comparable with principal key column types.
public static string StoredKeyTypesNotConvertable (object? fkColumnName, object? fkColumnType, object? pkColumnType, object? pkColumnName);
static member StoredKeyTypesNotConvertable : obj * obj * obj * obj -> string
Public Shared Function StoredKeyTypesNotConvertable (fkColumnName As Object, fkColumnType As Object, pkColumnType As Object, pkColumnName As Object) As String
Parameters
- fkColumnName
- Object
- fkColumnType
- Object
- pkColumnType
- Object
- pkColumnName
- 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