IConventionProperty.SetProviderValueComparer Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetProviderValueComparer(ValueComparer, Boolean) |
Sets the custom ValueComparer to use for the provider values for this property. |
SetProviderValueComparer(Type, Boolean) |
Sets the custom ValueComparer to use for the provider values for this property. |
SetProviderValueComparer(ValueComparer, Boolean)
- Source:
- IConventionProperty.cs
- Source:
- IConventionProperty.cs
- Source:
- IConventionProperty.cs
Sets the custom ValueComparer to use for the provider values for this property.
public Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer? SetProviderValueComparer (Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer? comparer, bool fromDataAnnotation = false);
abstract member SetProviderValueComparer : Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer * bool -> Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer
Public Function SetProviderValueComparer (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
SetProviderValueComparer(Type, Boolean)
- Source:
- IConventionProperty.cs
- Source:
- IConventionProperty.cs
- Source:
- IConventionProperty.cs
Sets the custom ValueComparer to use for the provider values for this property.
public Type? SetProviderValueComparer (Type? comparerType, bool fromDataAnnotation = false);
abstract member SetProviderValueComparer : Type * bool -> Type
Public Function SetProviderValueComparer (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
Entity Framework