PropertiesConfigurationBuilder.HaveConversion Method

Definition

Overloads

HaveConversion(Type, Type)

Configures the property so that the property value is converted before writing to the database and converted back when reading from the database.

HaveConversion(Type, Type, Type)

Configures the property so that the property value is converted before writing to the database and converted back when reading from the database.

HaveConversion(Type)

Configures the property so that the property value is converted before writing to the database and converted back when reading from the database.

HaveConversion<TConversion,TComparer,TProviderComparer>()

Configures the property so that the property value is converted before writing to the database and converted back when reading from the database.

HaveConversion<TConversion,TComparer>()

Configures the property so that the property value is converted before writing to the database and converted back when reading from the database.

HaveConversion<TConversion>()

Configures the property so that the property value is converted before writing to the database and converted back when reading from the database.

HaveConversion(Type, Type)

Configures the property so that the property value is converted before writing to the database and converted back when reading from the database.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder HaveConversion (Type conversionType, Type? comparerType);
abstract member HaveConversion : Type * Type -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder
override this.HaveConversion : Type * Type -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder
Public Overridable Function HaveConversion (conversionType As Type, comparerType As Type) As PropertiesConfigurationBuilder

Parameters

conversionType
Type

The type to convert to and from or a type that inherits from ValueConverter.

comparerType
Type

A type that inherits from ValueComparer.

Returns

The same builder instance so that multiple configuration calls can be chained.

Applies to

HaveConversion(Type, Type, Type)

Configures the property so that the property value is converted before writing to the database and converted back when reading from the database.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder HaveConversion (Type conversionType, Type? comparerType, Type? providerComparerType);
abstract member HaveConversion : Type * Type * Type -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder
override this.HaveConversion : Type * Type * Type -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder
Public Overridable Function HaveConversion (conversionType As Type, comparerType As Type, providerComparerType As Type) As PropertiesConfigurationBuilder

Parameters

conversionType
Type

The type to convert to and from or a type that inherits from ValueConverter.

comparerType
Type

A type that inherits from ValueComparer.

providerComparerType
Type

A type that inherits from ValueComparer to use for the provider values.

Returns

The same builder instance so that multiple configuration calls can be chained.

Applies to

HaveConversion(Type)

Configures the property so that the property value is converted before writing to the database and converted back when reading from the database.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder HaveConversion (Type conversionType);
abstract member HaveConversion : Type -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder
override this.HaveConversion : Type -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder
Public Overridable Function HaveConversion (conversionType As Type) As PropertiesConfigurationBuilder

Parameters

conversionType
Type

The type to convert to and from or a type that inherits from ValueConverter.

Returns

The same builder instance so that multiple configuration calls can be chained.

Applies to

HaveConversion<TConversion,TComparer,TProviderComparer>()

Configures the property so that the property value is converted before writing to the database and converted back when reading from the database.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder HaveConversion<TConversion,TComparer,TProviderComparer> () where TComparer : Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer;
abstract member HaveConversion : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder (requires 'Comparer :> Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer)
override this.HaveConversion : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder (requires 'Comparer :> Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer)
Public Overridable Function HaveConversion(Of TConversion, TComparer, TProviderComparer) () As PropertiesConfigurationBuilder

Type Parameters

TConversion

The type to convert to and from or a type that inherits from ValueConverter.

TComparer

A type that inherits from ValueComparer.

TProviderComparer

A type that inherits from ValueComparer to use for the provider values.

Returns

The same builder instance so that multiple configuration calls can be chained.

Applies to

HaveConversion<TConversion,TComparer>()

Configures the property so that the property value is converted before writing to the database and converted back when reading from the database.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder HaveConversion<TConversion,TComparer> () where TComparer : Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer;
abstract member HaveConversion : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder (requires 'Comparer :> Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer)
override this.HaveConversion : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder (requires 'Comparer :> Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer)
Public Overridable Function HaveConversion(Of TConversion, TComparer) () As PropertiesConfigurationBuilder

Type Parameters

TConversion

The type to convert to and from or a type that inherits from ValueConverter.

TComparer

A type that inherits from ValueComparer.

Returns

The same builder instance so that multiple configuration calls can be chained.

Applies to

HaveConversion<TConversion>()

Configures the property so that the property value is converted before writing to the database and converted back when reading from the database.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder HaveConversion<TConversion> ();
abstract member HaveConversion : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder
override this.HaveConversion : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder
Public Overridable Function HaveConversion(Of TConversion) () As PropertiesConfigurationBuilder

Type Parameters

TConversion

The type to convert to and from or a type that inherits from ValueConverter.

Returns

The same builder instance so that multiple configuration calls can be chained.

Applies to