Share via


IConventionPropertyBuilder.CanSetValueComparer Method

Definition

Overloads

CanSetValueComparer(ValueComparer, Boolean)

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

CanSetValueComparer(Type, Boolean)

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

CanSetValueComparer(ValueComparer, Boolean)

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

public bool CanSetValueComparer (Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer comparer, bool fromDataAnnotation = false);
public bool CanSetValueComparer (Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer? comparer, bool fromDataAnnotation = false);
abstract member CanSetValueComparer : Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer * bool -> bool
Public Function CanSetValueComparer (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

CanSetValueComparer(Type, Boolean)

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

public bool CanSetValueComparer (Type? comparerType, bool fromDataAnnotation = false);
abstract member CanSetValueComparer : Type * bool -> bool
Public Function CanSetValueComparer (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