CoreStrings.NonComparableKeyType(Object, Object, Object) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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