Share via


MutablePropertyExtensions.SetStructuralValueComparer Metodo

Definizione

Attenzione

Use SetValueComparer. Only a single value comparer is allowed for a given property.

Imposta la proprietà personalizzata ValueComparer per le copie strutturali per questa proprietà.

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)

Parametri

property
IMutableProperty

Proprietà.

comparer
ValueComparer

Comparer o null per rimuovere qualsiasi comparer impostato in precedenza.

Attributi

Si applica a