语言

PropertiesConfigurationBuilder.HaveConversion 方法

定义

重载

名称 说明
HaveConversion(Type, Type)

配置属性,以便在写入数据库之前转换属性值,并在从数据库读取时重新转换。

HaveConversion(Type, Type, Type)

配置属性,以便在写入数据库之前转换属性值,并在从数据库读取时重新转换。

HaveConversion(Type)

配置属性,以便在写入数据库之前转换属性值,并在从数据库读取时重新转换。

HaveConversion<TConversion,TComparer,TProviderComparer>()

配置属性,以便在写入数据库之前转换属性值,并在从数据库读取时重新转换。

HaveConversion<TConversion,TComparer>()

配置属性,以便在写入数据库之前转换属性值,并在从数据库读取时重新转换。

HaveConversion<TConversion>()

配置属性,以便在写入数据库之前转换属性值,并在从数据库读取时重新转换。

HaveConversion(Type, Type)

Source:
PropertiesConfigurationBuilder.cs
Source:
PropertiesConfigurationBuilder.cs
Source:
PropertiesConfigurationBuilder.cs
Source:
PropertiesConfigurationBuilder.cs
Source:
PropertiesConfigurationBuilder.cs
Source:
PropertiesConfigurationBuilder.cs

配置属性,以便在写入数据库之前转换属性值,并在从数据库读取时重新转换。

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

参数

conversionType
Type

要转换到的类型或从 ValueConverter中继承的类型。

comparerType
Type

继承自 ValueComparer.

返回

同一个生成器实例,以便可以链接多个配置调用。

适用于

HaveConversion(Type, Type, Type)

Source:
PropertiesConfigurationBuilder.cs
Source:
PropertiesConfigurationBuilder.cs
Source:
PropertiesConfigurationBuilder.cs
Source:
PropertiesConfigurationBuilder.cs
Source:
PropertiesConfigurationBuilder.cs

配置属性,以便在写入数据库之前转换属性值,并在从数据库读取时重新转换。

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

参数

conversionType
Type

要转换到的类型或从 ValueConverter中继承的类型。

comparerType
Type

继承自 ValueComparer.

providerComparerType
Type

继承自 ValueComparer 供提供程序值使用的类型。

返回

同一个生成器实例,以便可以链接多个配置调用。

适用于

HaveConversion(Type)

Source:
PropertiesConfigurationBuilder.cs
Source:
PropertiesConfigurationBuilder.cs
Source:
PropertiesConfigurationBuilder.cs
Source:
PropertiesConfigurationBuilder.cs
Source:
PropertiesConfigurationBuilder.cs
Source:
PropertiesConfigurationBuilder.cs

配置属性,以便在写入数据库之前转换属性值,并在从数据库读取时重新转换。

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

参数

conversionType
Type

要转换到的类型或从 ValueConverter中继承的类型。

返回

同一个生成器实例,以便可以链接多个配置调用。

适用于

HaveConversion<TConversion,TComparer,TProviderComparer>()

Source:
PropertiesConfigurationBuilder.cs
Source:
PropertiesConfigurationBuilder.cs
Source:
PropertiesConfigurationBuilder.cs
Source:
PropertiesConfigurationBuilder.cs
Source:
PropertiesConfigurationBuilder.cs

配置属性,以便在写入数据库之前转换属性值,并在从数据库读取时重新转换。

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

类型参数

TConversion

要转换到的类型或从 ValueConverter中继承的类型。

TComparer

继承自 ValueComparer.

TProviderComparer

继承自 ValueComparer 供提供程序值使用的类型。

返回

同一个生成器实例,以便可以链接多个配置调用。

适用于

HaveConversion<TConversion,TComparer>()

Source:
PropertiesConfigurationBuilder.cs
Source:
PropertiesConfigurationBuilder.cs
Source:
PropertiesConfigurationBuilder.cs
Source:
PropertiesConfigurationBuilder.cs
Source:
PropertiesConfigurationBuilder.cs
Source:
PropertiesConfigurationBuilder.cs

配置属性,以便在写入数据库之前转换属性值,并在从数据库读取时重新转换。

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

类型参数

TConversion

要转换到的类型或从 ValueConverter中继承的类型。

TComparer

继承自 ValueComparer.

返回

同一个生成器实例,以便可以链接多个配置调用。

适用于

HaveConversion<TConversion>()

Source:
PropertiesConfigurationBuilder.cs
Source:
PropertiesConfigurationBuilder.cs
Source:
PropertiesConfigurationBuilder.cs
Source:
PropertiesConfigurationBuilder.cs
Source:
PropertiesConfigurationBuilder.cs
Source:
PropertiesConfigurationBuilder.cs

配置属性,以便在写入数据库之前转换属性值,并在从数据库读取时重新转换。

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

类型参数

TConversion

要转换到的类型或从 ValueConverter中继承的类型。

返回

同一个生成器实例,以便可以链接多个配置调用。

适用于