RelationalTypeMapping Constructors

Definition

Overloads

RelationalTypeMapping(RelationalTypeMapping+RelationalTypeMappingParameters)

Initializes a new instance of the RelationalTypeMapping class.

RelationalTypeMapping(String, Type)

Initializes a new instance of the RelationalTypeMapping class.

RelationalTypeMapping(String, Type, Nullable<DbType>)

Initializes a new instance of the RelationalTypeMapping class.

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

Initializes a new instance of the RelationalTypeMapping class.

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

Initializes a new instance of the RelationalTypeMapping class.

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

Initializes a new instance of the RelationalTypeMapping class.

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

Initializes a new instance of the RelationalTypeMapping class.

RelationalTypeMapping(RelationalTypeMapping+RelationalTypeMappingParameters)

Initializes a new instance of the RelationalTypeMapping class.

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)

Parameters

parameters
RelationalTypeMapping.RelationalTypeMappingParameters

The parameters for this mapping.

Applies to

RelationalTypeMapping(String, Type)

Initializes a new instance of the RelationalTypeMapping class.

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)

Parameters

storeType
String

The name of the database type.

clrType
Type

The .NET type.

Applies to

RelationalTypeMapping(String, Type, Nullable<DbType>)

Initializes a new instance of the RelationalTypeMapping class.

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))

Parameters

storeType
String

The name of the database type.

clrType
Type

The .NET type.

dbType
Nullable<DbType>

The DbType to be used.

Applies to

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

Initializes a new instance of the RelationalTypeMapping class.

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)

Parameters

storeType
String

The name of the database type.

clrType
Type

The .NET type.

dbType
Nullable<DbType>

The DbType to be used.

unicode
Boolean

A value indicating whether the type should handle Unicode data or not.

size
Nullable<Int32>

The size of data the property is configured to store, or null if no size is configured.

Applies to

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

Initializes a new instance of the RelationalTypeMapping class.

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)

Parameters

storeType
String

The name of the database type.

clrType
Type

The .NET type.

dbType
Nullable<DbType>

The DbType to be used.

unicode
Boolean

A value indicating whether the type should handle Unicode data or not.

size
Nullable<Int32>

The size of data the property is configured to store, or null if no size is configured.

hasNonDefaultUnicode
Boolean

A value indicating whether the Unicode setting has been manually configured to a non-default value.

hasNonDefaultSize
Boolean

A value indicating whether the size setting has been manually configured to a non-default value.

Applies to

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

Initializes a new instance of the RelationalTypeMapping class.

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)

Parameters

storeType
String

The name of the database type.

clrType
Type

The .NET type.

dbType
Nullable<DbType>

The DbType to be used.

unicode
Boolean

A value indicating whether the type should handle Unicode data or not.

size
Nullable<Int32>

The size of data the property is configured to store, or null if no size is configured.

fixedLength
Boolean

A value indicating whether the type has fixed length data or not.

precision
Nullable<Int32>

The precision of data the property is configured to store, or null if no precision is configured.

scale
Nullable<Int32>

The scale of data the property is configured to store, or null if no scale is configured.

Applies to

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

Initializes a new instance of the RelationalTypeMapping class.

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)

Parameters

storeType
String

The name of the database type.

clrType
Type

The .NET type.

dbType
Nullable<DbType>

The DbType to be used.

unicode
Boolean

A value indicating whether the type should handle Unicode data or not.

size
Nullable<Int32>

The size of data the property is configured to store, or null if no size is configured.

fixedLength
Boolean

A value indicating whether the type has fixed length data or not.

precision
Nullable<Int32>

The precision of data the property is configured to store, or null if no precision is configured.

scale
Nullable<Int32>

The scale of data the property is configured to store, or null if no scale is configured.

jsonValueReaderWriter
JsonValueReaderWriter

Handles reading and writing JSON values for instances of the mapped type.

Applies to