Partager via


CoreStrings.NonComparableKeyType(Object, Object, Object) Méthode

Définition

Propriété « {entityType}. {property} » ne peut pas être utilisé comme clé, car elle a le type « {providerType} » qui n’implémente pas « IComparable<T> », « IComparable » ou « IStructuralComparable ». Utilisez « HasConversion » dans « OnModelCreating » pour encapsuler « {providerType} » avec un type qui peut être comparé.

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

Paramètres

entityType
Object
property
Object
providerType
Object

Retours

S’applique à