语言

IValueConverterSelector.Select(Type, Type) 方法

定义

返回可用于转换给定模型类型的实例列表 ValueConverterInfo 。 应优先使用靠近列表前面的转换器的转换器接近尾部。

public System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverterInfo> Select(Type modelClrType, Type? providerClrType = default);
public System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverterInfo> Select(Type modelClrType, Type providerClrType = default);
abstract member Select : Type * Type -> seq<Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverterInfo>
Public Function Select (modelClrType As Type, Optional providerClrType As Type = Nothing) As IEnumerable(Of ValueConverterInfo)

参数

modelClrType
Type

需要转换器的类型。

providerClrType
Type

要面向的存储类型,或针对任何存储类型为 null。

返回

可用的转换器。

注解

有关详细信息和示例,请参阅 EF Core 值转换器 。

适用于