Share via


IConventionProperty.SetValueComparer Method

Definition

Overloads

SetValueComparer(ValueComparer, Boolean)

Sets the custom ValueComparer for this property.

SetValueComparer(Type, Boolean)

Sets the custom ValueComparer for this property.

SetValueComparer(ValueComparer, Boolean)

Source:
IConventionProperty.cs
Source:
IConventionProperty.cs
Source:
IConventionProperty.cs
Source:
IConventionProperty.cs

Sets the custom ValueComparer for this property.

public Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer? SetValueComparer (Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer? comparer, bool fromDataAnnotation = false);
abstract member SetValueComparer : Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer * bool -> Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer
Public Function SetValueComparer (comparer As ValueComparer, Optional fromDataAnnotation As Boolean = false) As ValueComparer

Parameters

comparer
ValueComparer

The comparer, or null to remove any previously set comparer.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configured value.

Applies to

SetValueComparer(Type, Boolean)

Source:
IConventionProperty.cs
Source:
IConventionProperty.cs
Source:
IConventionProperty.cs
Source:
IConventionProperty.cs

Sets the custom ValueComparer for this property.

public Type? SetValueComparer (Type? comparerType, bool fromDataAnnotation = false);
abstract member SetValueComparer : Type * bool -> Type
Public Function SetValueComparer (comparerType As Type, Optional fromDataAnnotation As Boolean = false) As Type

Parameters

comparerType
Type

A type that inherits from ValueComparer, or null to remove any previously set comparer.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configured value.

Applies to