CoreStrings.NonComparableKeyTypes(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.
Property '{entityType}.{property}' cannot be used as a key because it has type '{modelType}' and provider type '{providerType}', neither of which implement 'IComparable<T>', 'IComparable' or 'IStructuralComparable'. Make '{modelType}' implement one of these interfaces to use it as a key.
public static string NonComparableKeyTypes (object entityType, object property, object modelType, object providerType);
public static string NonComparableKeyTypes (object? entityType, object? property, object? modelType, object? providerType);
static member NonComparableKeyTypes : obj * obj * obj * obj -> string
Public Shared Function NonComparableKeyTypes (entityType As Object, property As Object, modelType As Object, providerType As Object) As String
Parameters
- entityType
- Object
- property
- Object
- modelType
- Object
- providerType
- Object
Returns
Applies to
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för