MutablePropertyExtensions.SetStructuralValueComparer Méthode
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.
Attention
Use SetValueComparer. Only a single value comparer is allowed for a given property.
Définit la valeur personnalisée ValueComparer pour les copies structurelles pour cette propriété.
public static void SetStructuralValueComparer (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer comparer);
[System.Obsolete("Use SetValueComparer. Only a single value comparer is allowed for a given property.")]
public static void SetStructuralValueComparer (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer comparer);
[System.Obsolete("Use SetValueComparer. Only a single value comparer is allowed for a given property.")]
public static void SetStructuralValueComparer (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer? comparer);
static member SetStructuralValueComparer : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer -> unit
[<System.Obsolete("Use SetValueComparer. Only a single value comparer is allowed for a given property.")>]
static member SetStructuralValueComparer : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer -> unit
<Extension()>
Public Sub SetStructuralValueComparer (property As IMutableProperty, comparer As ValueComparer)
- property
- IMutableProperty
Propriété.
- comparer
- ValueComparer
Comparateur ou null
pour supprimer tout comparateur précédemment défini.
- Attributs
Produit | Versions (Obsolète) |
---|---|
Entity Framework Core | 2.2, 3.0, 3.1 (5.0, 6.0) |
Commentaires sur Entity Framework
Entity Framework est un projet open source. Sélectionnez un lien pour fournir des commentaires :