MutablePropertyExtensions.SetStructuralValueComparer Méthode

Définition

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é.

C#
public static void SetStructuralValueComparer (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer comparer);
C#
[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);
C#
[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);

Paramètres

property
IMutableProperty

Propriété.

comparer
ValueComparer

Comparateur ou null pour supprimer tout comparateur précédemment défini.

Attributs

S’applique à

Produit Versions (Obsolète)
Entity Framework Core 2.2, 3.0, 3.1 (5.0, 6.0)