Compartir a través de


ConventionPropertyExtensions.SetValueComparer Método

Definición

Establece el personalizado ValueComparer para esta propiedad.

public static void SetValueComparer (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer comparer, bool fromDataAnnotation = false);
public static Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer SetValueComparer (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer comparer, bool fromDataAnnotation = false);
static member SetValueComparer : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer * bool -> unit
static member SetValueComparer : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer * bool -> Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer
<Extension()>
Public Sub SetValueComparer (property As IConventionProperty, comparer As ValueComparer, Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetValueComparer (property As IConventionProperty, comparer As ValueComparer, Optional fromDataAnnotation As Boolean = false) As ValueComparer

Parámetros

property
IConventionProperty

Propiedad.

comparer
ValueComparer

Comparador o null para quitar cualquier comparador establecido previamente.

fromDataAnnotation
Boolean

Indica si la configuración se especificó mediante una anotación de datos.

Devoluciones

El valor configurado.

Se aplica a