Udostępnij za pośrednictwem


MutablePropertyExtensions.SetStructuralValueComparer Metoda

Definicja

Przestroga

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

Ustawia niestandardowy ValueComparer dla kopii strukturalnych dla tej właściwości.

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)

Parametry

property
IMutableProperty

Właściwość.

comparer
ValueComparer

Moduł porównujący lub null usunięcie dowolnego wcześniej ustawionego modułu porównującego.

Atrybuty

Dotyczy