Share via


IConventionPropertyBuilder.HasProviderValueComparer Method

Definition

Overloads

HasProviderValueComparer(ValueComparer, Boolean)

Configures the ValueComparer to use for the provider values for this property.

HasProviderValueComparer(Type, Boolean)

Configures the ValueComparer to use for the provider values for this property.

HasProviderValueComparer(ValueComparer, Boolean)

Configures the ValueComparer to use for the provider values for this property.

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

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 same builder instance if the configuration was applied, null otherwise.

Applies to

HasProviderValueComparer(Type, Boolean)

Configures the ValueComparer to use for the provider values for this property.

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder? HasProviderValueComparer (Type? comparerType, bool fromDataAnnotation = false);
abstract member HasProviderValueComparer : Type * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder
Public Function HasProviderValueComparer (comparerType As Type, Optional fromDataAnnotation As Boolean = false) As IConventionPropertyBuilder

Parameters

comparerType
Type

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

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The same builder instance if the configuration was applied, null otherwise.

Applies to