RelationalTypeMapping 构造函数

定义

重载

RelationalTypeMapping(RelationalTypeMapping+RelationalTypeMappingParameters)

初始化 RelationalTypeMapping 类的新实例。

RelationalTypeMapping(String, Type)

初始化 RelationalTypeMapping 类的新实例。

RelationalTypeMapping(String, Type, Nullable<DbType>)

初始化 RelationalTypeMapping 类的新实例。

RelationalTypeMapping(String, Type, Nullable<DbType>, Boolean, Nullable<Int32>)

初始化 RelationalTypeMapping 类的新实例。

RelationalTypeMapping(String, Type, Nullable<DbType>, Boolean, Nullable<Int32>, Boolean, Boolean)

初始化 RelationalTypeMapping 类的新实例。

RelationalTypeMapping(String, Type, Nullable<DbType>, Boolean, Nullable<Int32>, Boolean, Nullable<Int32>, Nullable<Int32>)

初始化 RelationalTypeMapping 类的新实例。

RelationalTypeMapping(String, Type, Nullable<DbType>, Boolean, Nullable<Int32>, Boolean, Nullable<Int32>, Nullable<Int32>, JsonValueReaderWriter)

初始化 RelationalTypeMapping 类的新实例。

RelationalTypeMapping(RelationalTypeMapping+RelationalTypeMappingParameters)

初始化 RelationalTypeMapping 类的新实例。

protected RelationalTypeMapping (Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping.RelationalTypeMappingParameters parameters);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping : Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping.RelationalTypeMappingParameters -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
Protected Sub New (parameters As RelationalTypeMapping.RelationalTypeMappingParameters)

参数

适用于

RelationalTypeMapping(String, Type)

初始化 RelationalTypeMapping 类的新实例。

public RelationalTypeMapping (string storeType, Type clrType);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping : string * Type -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
Public Sub New (storeType As String, clrType As Type)

参数

storeType
String

数据库类型的名称。

clrType
Type

.NET 类型。

适用于

RelationalTypeMapping(String, Type, Nullable<DbType>)

初始化 RelationalTypeMapping 类的新实例。

public RelationalTypeMapping (string storeType, Type clrType, System.Data.DbType? dbType);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping : string * Type * Nullable<System.Data.DbType> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
Public Sub New (storeType As String, clrType As Type, dbType As Nullable(Of DbType))

参数

storeType
String

数据库类型的名称。

clrType
Type

.NET 类型。

dbType
Nullable<DbType>

要使用的 DbType

适用于

RelationalTypeMapping(String, Type, Nullable<DbType>, Boolean, Nullable<Int32>)

初始化 RelationalTypeMapping 类的新实例。

protected RelationalTypeMapping (string storeType, Type clrType, System.Data.DbType? dbType = default, bool unicode = false, int? size = default);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping : string * Type * Nullable<System.Data.DbType> * bool * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
Protected Sub New (storeType As String, clrType As Type, Optional dbType As Nullable(Of DbType) = Nothing, Optional unicode As Boolean = false, Optional size As Nullable(Of Integer) = Nothing)

参数

storeType
String

数据库类型的名称。

clrType
Type

.NET 类型。

dbType
Nullable<DbType>

要使用的 DbType

unicode
Boolean

一个值,该值指示类型是否应处理 Unicode 数据。

size
Nullable<Int32>

属性配置为存储的数据大小;如果未配置大小,则为 null。

适用于

RelationalTypeMapping(String, Type, Nullable<DbType>, Boolean, Nullable<Int32>, Boolean, Boolean)

初始化 RelationalTypeMapping 类的新实例。

public RelationalTypeMapping (string storeType, Type clrType, System.Data.DbType? dbType, bool unicode, int? size, bool hasNonDefaultUnicode = false, bool hasNonDefaultSize = false);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping : string * Type * Nullable<System.Data.DbType> * bool * Nullable<int> * bool * bool -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
Public Sub New (storeType As String, clrType As Type, dbType As Nullable(Of DbType), unicode As Boolean, size As Nullable(Of Integer), Optional hasNonDefaultUnicode As Boolean = false, Optional hasNonDefaultSize As Boolean = false)

参数

storeType
String

数据库类型的名称。

clrType
Type

.NET 类型。

dbType
Nullable<DbType>

要使用的 DbType

unicode
Boolean

一个值,该值指示类型是否应处理 Unicode 数据。

size
Nullable<Int32>

属性配置为存储的数据大小;如果未配置大小,则为 null。

hasNonDefaultUnicode
Boolean

一个值,该值指示 Unicode 设置是否已手动配置为非默认值。

hasNonDefaultSize
Boolean

一个值,该值指示是否已手动将大小设置配置为非默认值。

适用于

RelationalTypeMapping(String, Type, Nullable<DbType>, Boolean, Nullable<Int32>, Boolean, Nullable<Int32>, Nullable<Int32>)

初始化 RelationalTypeMapping 类的新实例。

protected RelationalTypeMapping (string storeType, Type clrType, System.Data.DbType? dbType = default, bool unicode = false, int? size = default, bool fixedLength = false, int? precision = default, int? scale = default);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping : string * Type * Nullable<System.Data.DbType> * bool * Nullable<int> * bool * Nullable<int> * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
Protected Sub New (storeType As String, clrType As Type, Optional dbType As Nullable(Of DbType) = Nothing, Optional unicode As Boolean = false, Optional size As Nullable(Of Integer) = Nothing, Optional fixedLength As Boolean = false, Optional precision As Nullable(Of Integer) = Nothing, Optional scale As Nullable(Of Integer) = Nothing)

参数

storeType
String

数据库类型的名称。

clrType
Type

.NET 类型。

dbType
Nullable<DbType>

要使用的 DbType

unicode
Boolean

一个值,该值指示类型是否应处理 Unicode 数据。

size
Nullable<Int32>

属性配置为存储的数据大小;如果未配置大小,则为 null。

fixedLength
Boolean

一个值,该值指示类型是否具有固定长度数据。

precision
Nullable<Int32>

属性配置为存储的数据的精度;如果未配置精度,则为 null。

scale
Nullable<Int32>

属性配置为存储的数据比例;如果未配置任何缩放,则为 null。

适用于

RelationalTypeMapping(String, Type, Nullable<DbType>, Boolean, Nullable<Int32>, Boolean, Nullable<Int32>, Nullable<Int32>, JsonValueReaderWriter)

初始化 RelationalTypeMapping 类的新实例。

protected RelationalTypeMapping (string storeType, Type clrType, System.Data.DbType? dbType = default, bool unicode = false, int? size = default, bool fixedLength = false, int? precision = default, int? scale = default, Microsoft.EntityFrameworkCore.Storage.Json.JsonValueReaderWriter? jsonValueReaderWriter = default);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping : string * Type * Nullable<System.Data.DbType> * bool * Nullable<int> * bool * Nullable<int> * Nullable<int> * Microsoft.EntityFrameworkCore.Storage.Json.JsonValueReaderWriter -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
Protected Sub New (storeType As String, clrType As Type, Optional dbType As Nullable(Of DbType) = Nothing, Optional unicode As Boolean = false, Optional size As Nullable(Of Integer) = Nothing, Optional fixedLength As Boolean = false, Optional precision As Nullable(Of Integer) = Nothing, Optional scale As Nullable(Of Integer) = Nothing, Optional jsonValueReaderWriter As JsonValueReaderWriter = Nothing)

参数

storeType
String

数据库类型的名称。

clrType
Type

.NET 类型。

dbType
Nullable<DbType>

要使用的 DbType

unicode
Boolean

一个值,该值指示类型是否应处理 Unicode 数据。

size
Nullable<Int32>

属性配置为存储的数据大小;如果未配置大小,则为 null。

fixedLength
Boolean

一个值,该值指示类型是否具有固定长度数据。

precision
Nullable<Int32>

属性配置为存储的数据的精度;如果未配置精度,则为 null。

scale
Nullable<Int32>

属性配置为存储的数据比例;如果未配置任何缩放,则为 null。

jsonValueReaderWriter
JsonValueReaderWriter

处理映射类型的实例的读取和写入 JSON 值。

适用于