CoreStrings.NonComparableKeyType(Object, Object, Object) Method

Definition

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