CoreStrings.NonComparableKeyType(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.
Property '{entityType}.{property}' cannot be used as a key because it has type '{providerType}' which does not implement 'IComparable<T>', 'IComparable' or 'IStructuralComparable'. Use 'HasConversion' in 'OnModelCreating' to wrap '{providerType}' with a type that can be compared.
public static string NonComparableKeyType (object entityType, object property, object providerType);
public static string NonComparableKeyType (object? entityType, object? property, object? providerType);
static member NonComparableKeyType : obj * obj * obj -> string
Public Shared Function NonComparableKeyType (entityType As Object, property As Object, providerType As Object) As String
Parameters
- entityType
- Object
- property
- Object
- providerType
- 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