Share via


IConventionPropertyBuilder.CanSetProviderValueComparer Method

Definition

Overloads

CanSetProviderValueComparer(ValueComparer, Boolean)

Returns a value indicating whether the given ValueComparer can be configured for this property from the current configuration source.

CanSetProviderValueComparer(Type, Boolean)

Returns a value indicating whether the given ValueComparer can be configured for this property from the current configuration source.

CanSetProviderValueComparer(ValueComparer, Boolean)

Returns a value indicating whether the given ValueComparer can be configured for this property from the current configuration source.

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

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

true if the given ValueComparer can be configured for this property.

Applies to

CanSetProviderValueComparer(Type, Boolean)

Returns a value indicating whether the given ValueComparer can be configured for this property from the current configuration source.

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

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

true if the given ValueComparer can be configured for this property.

Applies to