Delen via


IConventionPropertyBuilder.CanSetConversion Method

Definition

Overloads

CanSetConversion(ValueConverter, Boolean)

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

CanSetConversion(Type, Boolean)

Returns a value indicating whether the given type to convert values to and from can be configured for this property from the current configuration source.

CanSetConversion(ValueConverter, Boolean)

Source:
IConventionPropertyBuilder.cs
Source:
IConventionPropertyBuilder.cs
Source:
IConventionPropertyBuilder.cs

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

public bool CanSetConversion (Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverter converter, bool fromDataAnnotation = false);
public bool CanSetConversion (Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverter? converter, bool fromDataAnnotation = false);
abstract member CanSetConversion : Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverter * bool -> bool
Public Function CanSetConversion (converter As ValueConverter, Optional fromDataAnnotation As Boolean = false) As Boolean

Parameters

converter
ValueConverter

The converter to use.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

true if the ValueConverter can be configured for this property.

Applies to

CanSetConversion(Type, Boolean)

Source:
IConventionPropertyBuilder.cs
Source:
IConventionPropertyBuilder.cs
Source:
IConventionPropertyBuilder.cs

Returns a value indicating whether the given type to convert values to and from can be configured for this property from the current configuration source.

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

Parameters

providerClrType
Type

The type to convert to and from.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

true if the given type to convert values to and from can be configured for this property.

Applies to