IValueConverterSelector.Select(Type, Type) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回可用于转换给定模型类型的实例列表 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 值转换器 。