Share via


PropertiesConfigurationBuilder<TProperty>.HaveConversion Method

Definition

Overloads

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(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<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)

Source:
PropertiesConfigurationBuilder%60.cs
Source:
PropertiesConfigurationBuilder%60.cs
Source:
PropertiesConfigurationBuilder%60.cs
Source:
PropertiesConfigurationBuilder%60.cs

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<TProperty> HaveConversion (Type conversionType);
override this.HaveConversion : Type -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder<'Property>
Public Overridable Function HaveConversion (conversionType As Type) As PropertiesConfigurationBuilder(Of TProperty)

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(Type, Type)

Source:
PropertiesConfigurationBuilder%60.cs
Source:
PropertiesConfigurationBuilder%60.cs
Source:
PropertiesConfigurationBuilder%60.cs
Source:
PropertiesConfigurationBuilder%60.cs

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<TProperty> HaveConversion (Type conversionType, Type? comparerType);
override this.HaveConversion : Type * Type -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder<'Property>
Public Overridable Function HaveConversion (conversionType As Type, comparerType As Type) As PropertiesConfigurationBuilder(Of TProperty)

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<TConversion,TComparer>()

Source:
PropertiesConfigurationBuilder%60.cs
Source:
PropertiesConfigurationBuilder%60.cs
Source:
PropertiesConfigurationBuilder%60.cs
Source:
PropertiesConfigurationBuilder%60.cs

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<TProperty> HaveConversion<TConversion,TComparer> () where TComparer : Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer;
override this.HaveConversion : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder<'Property> (requires 'Comparer :> Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer)
Public Overridable Function HaveConversion(Of TConversion, TComparer) () As PropertiesConfigurationBuilder(Of TProperty)

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>()

Source:
PropertiesConfigurationBuilder%60.cs
Source:
PropertiesConfigurationBuilder%60.cs
Source:
PropertiesConfigurationBuilder%60.cs
Source:
PropertiesConfigurationBuilder%60.cs

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<TProperty> HaveConversion<TConversion> ();
override this.HaveConversion : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder<'Property>
Public Overridable Function HaveConversion(Of TConversion) () As PropertiesConfigurationBuilder(Of TProperty)

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