NumberToBytesConverter<TNumber> 构造函数

定义

重载

NumberToBytesConverter<TNumber>()

创建此转换器的新实例。

NumberToBytesConverter<TNumber>(ConverterMappingHints)

创建此转换器的新实例。

NumberToBytesConverter<TNumber>()

Source:
NumberToBytesConverter.cs
Source:
NumberToBytesConverter.cs
Source:
NumberToBytesConverter.cs
Source:
NumberToBytesConverter.cs

创建此转换器的新实例。

public NumberToBytesConverter ();
Public Sub New ()

注解

此转换器支持 Double、、SingleDecimalInt32Int16UInt64Int64UInt32UInt16ByteSByte和 。Char

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

适用于

NumberToBytesConverter<TNumber>(ConverterMappingHints)

Source:
NumberToBytesConverter.cs
Source:
NumberToBytesConverter.cs
Source:
NumberToBytesConverter.cs
Source:
NumberToBytesConverter.cs
Source:
NumberToBytesConverter.cs
Source:
NumberToBytesConverter.cs
Source:
NumberToBytesConverter.cs
Source:
NumberToBytesConverter.cs
Source:
NumberToBytesConverter.cs

创建此转换器的新实例。

public NumberToBytesConverter (Microsoft.EntityFrameworkCore.Storage.ValueConversion.ConverterMappingHints mappingHints = default);
public NumberToBytesConverter (Microsoft.EntityFrameworkCore.Storage.ValueConversion.ConverterMappingHints? mappingHints);
new Microsoft.EntityFrameworkCore.Storage.ValueConversion.NumberToBytesConverter<'Number> : Microsoft.EntityFrameworkCore.Storage.ValueConversion.ConverterMappingHints -> Microsoft.EntityFrameworkCore.Storage.ValueConversion.NumberToBytesConverter<'Number>
Public Sub New (Optional mappingHints As ConverterMappingHints = Nothing)
Public Sub New (mappingHints As ConverterMappingHints)

参数

mappingHints
ConverterMappingHints

可用于 ITypeMappingSource 为转换的数据创建具有适当分面的数据类型的提示。

注解

此转换器支持 Double、、SingleDecimalInt32Int16UInt64Int64UInt32UInt16ByteSByte和 。Char

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

适用于