Share via


RelationalTypeMappingInfo Constructors

Definition

Overloads

RelationalTypeMappingInfo(IProperty)

Creates a new instance of RelationalTypeMappingInfo.

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

Creates a new instance of TypeMappingInfo.

RelationalTypeMappingInfo(Type, String, String, Boolean, Nullable<Boolean>, Nullable<Int32>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of TypeMappingInfo.

RelationalTypeMappingInfo(Type, String, Boolean, Nullable<Boolean>, Nullable<Int32>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of TypeMappingInfo.

RelationalTypeMappingInfo(IReadOnlyList<IProperty>, String, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of RelationalTypeMappingInfo.

RelationalTypeMappingInfo(MemberInfo, RelationalTypeMapping, String, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of RelationalTypeMappingInfo.

RelationalTypeMappingInfo(MemberInfo, String, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of RelationalTypeMappingInfo.

RelationalTypeMappingInfo(IElementType, String, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of RelationalTypeMappingInfo.

RelationalTypeMappingInfo(RelationalTypeMappingInfo, ValueConverterInfo)

Creates a new instance of RelationalTypeMappingInfo with the given ValueConverterInfo.

RelationalTypeMappingInfo(Type)

Creates a new instance of RelationalTypeMappingInfo.

RelationalTypeMappingInfo(String)

Creates a new instance of RelationalTypeMappingInfo.

RelationalTypeMappingInfo(MemberInfo)

Creates a new instance of RelationalTypeMappingInfo.

RelationalTypeMappingInfo(IReadOnlyList<IProperty>)

Creates a new instance of RelationalTypeMappingInfo.

RelationalTypeMappingInfo(String, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of RelationalTypeMappingInfo.

RelationalTypeMappingInfo(IProperty)

Creates a new instance of RelationalTypeMappingInfo.

public RelationalTypeMappingInfo (Microsoft.EntityFrameworkCore.Metadata.IProperty property);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo
Public Sub New (property As IProperty)

Parameters

property
IProperty

The property for which mapping is needed.

Applies to

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

Creates a new instance of TypeMappingInfo.

public RelationalTypeMappingInfo (Type? type = default, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? elementTypeMapping = default, string? storeTypeName = default, string? storeTypeNameBase = default, bool keyOrIndex = false, bool? unicode = default, int? size = default, bool? rowVersion = default, bool? fixedLength = default, int? precision = default, int? scale = default, System.Data.DbType? dbType = default);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo : Type * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping * string * string * bool * Nullable<bool> * Nullable<int> * Nullable<bool> * Nullable<bool> * Nullable<int> * Nullable<int> * Nullable<System.Data.DbType> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo
Public Sub New (Optional type As Type = Nothing, Optional elementTypeMapping As RelationalTypeMapping = Nothing, Optional storeTypeName As String = Nothing, Optional storeTypeNameBase As String = Nothing, Optional keyOrIndex As Boolean = false, Optional unicode As Nullable(Of Boolean) = Nothing, Optional size As Nullable(Of Integer) = Nothing, Optional rowVersion As Nullable(Of Boolean) = Nothing, Optional fixedLength As Nullable(Of Boolean) = Nothing, Optional precision As Nullable(Of Integer) = Nothing, Optional scale As Nullable(Of Integer) = Nothing, Optional dbType As Nullable(Of DbType) = Nothing)

Parameters

type
Type

The CLR type in the model for which mapping is needed.

elementTypeMapping
RelationalTypeMapping

The type mapping for elements, if known.

storeTypeName
String

The database type name.

storeTypeNameBase
String

The provider-specific relational type name, with any facets removed.

keyOrIndex
Boolean

If true, then a special mapping for a key or index may be returned.

unicode
Nullable<Boolean>

Specifies Unicode or ANSI mapping, or null for default.

size
Nullable<Int32>

Specifies a size for the mapping, or null for default.

rowVersion
Nullable<Boolean>

Specifies a row-version, or null for default.

fixedLength
Nullable<Boolean>

Specifies a fixed length mapping, or null for default.

precision
Nullable<Int32>

Specifies a precision for the mapping, or null for default.

scale
Nullable<Int32>

Specifies a scale for the mapping, or null for default.

dbType
Nullable<DbType>

The suggested DbType, or null for default.

Applies to

RelationalTypeMappingInfo(Type, String, String, Boolean, Nullable<Boolean>, Nullable<Int32>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of TypeMappingInfo.

public RelationalTypeMappingInfo (Type type, string storeTypeName = default, string storeTypeNameBase = default, bool keyOrIndex = false, bool? unicode = default, int? size = default, bool? rowVersion = default, bool? fixedLength = default, int? precision = default, int? scale = default);
public RelationalTypeMappingInfo (Type type, string? storeTypeName = default, string? storeTypeNameBase = default, bool keyOrIndex = false, bool? unicode = default, int? size = default, bool? rowVersion = default, bool? fixedLength = default, int? precision = default, int? scale = default);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo : Type * string * string * bool * Nullable<bool> * Nullable<int> * Nullable<bool> * Nullable<bool> * Nullable<int> * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo
Public Sub New (type As Type, Optional storeTypeName As String = Nothing, Optional storeTypeNameBase As String = Nothing, Optional keyOrIndex As Boolean = false, Optional unicode As Nullable(Of Boolean) = Nothing, Optional size As Nullable(Of Integer) = Nothing, Optional rowVersion As Nullable(Of Boolean) = Nothing, Optional fixedLength As Nullable(Of Boolean) = Nothing, Optional precision As Nullable(Of Integer) = Nothing, Optional scale As Nullable(Of Integer) = Nothing)

Parameters

type
Type

The CLR type in the model for which mapping is needed.

storeTypeName
String

The database type name.

storeTypeNameBase
String

The provider-specific relational type name, with any facets removed.

keyOrIndex
Boolean

If true, then a special mapping for a key or index may be returned.

unicode
Nullable<Boolean>

Specifies Unicode or ANSI mapping, or null for default.

size
Nullable<Int32>

Specifies a size for the mapping, or null for default.

rowVersion
Nullable<Boolean>

Specifies a row-version, or null for default.

fixedLength
Nullable<Boolean>

Specifies a fixed length mapping, or null for default.

precision
Nullable<Int32>

Specifies a precision for the mapping, or null for default.

scale
Nullable<Int32>

Specifies a scale for the mapping, or null for default.

Applies to

RelationalTypeMappingInfo(Type, String, Boolean, Nullable<Boolean>, Nullable<Int32>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of TypeMappingInfo.

public RelationalTypeMappingInfo (Type type, string storeTypeName, bool keyOrIndex, bool? unicode, int? size, bool? rowVersion, bool? fixedLength, int? precision, int? scale);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo : Type * string * bool * Nullable<bool> * Nullable<int> * Nullable<bool> * Nullable<bool> * Nullable<int> * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo
Public Sub New (type As Type, storeTypeName As String, keyOrIndex As Boolean, unicode As Nullable(Of Boolean), size As Nullable(Of Integer), rowVersion As Nullable(Of Boolean), fixedLength As Nullable(Of Boolean), precision As Nullable(Of Integer), scale As Nullable(Of Integer))

Parameters

type
Type

The CLR type in the model for which mapping is needed.

storeTypeName
String

The database type name.

keyOrIndex
Boolean

If true, then a special mapping for a key or index may be returned.

unicode
Nullable<Boolean>

Specifies Unicode or ANSI mapping, or null for default.

size
Nullable<Int32>

Specifies a size for the mapping, or null for default.

rowVersion
Nullable<Boolean>

Specifies a row-version, or null for default.

fixedLength
Nullable<Boolean>

Specifies a fixed length mapping, or null for default.

precision
Nullable<Int32>

Specifies a precision for the mapping, or null for default.

scale
Nullable<Int32>

Specifies a scale for the mapping, or null for default.

Applies to

RelationalTypeMappingInfo(IReadOnlyList<IProperty>, String, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of RelationalTypeMappingInfo.

public RelationalTypeMappingInfo (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> principals, string storeTypeName = default, string storeTypeNameBase = default, bool? fallbackUnicode = default, bool? fixedLength = default, int? fallbackSize = default, int? fallbackPrecision = default, int? fallbackScale = default);
public RelationalTypeMappingInfo (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> principals, string? storeTypeName = default, string? storeTypeNameBase = default, bool? fallbackUnicode = default, bool? fixedLength = default, int? fallbackSize = default, int? fallbackPrecision = default, int? fallbackScale = default);
public RelationalTypeMappingInfo (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> principals, string? storeTypeName = default, string? storeTypeNameBase = default, bool? fallbackUnicode = default, bool? fallbackFixedLength = default, int? fallbackSize = default, int? fallbackPrecision = default, int? fallbackScale = default);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> * string * string * Nullable<bool> * Nullable<bool> * Nullable<int> * Nullable<int> * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> * string * string * Nullable<bool> * Nullable<bool> * Nullable<int> * Nullable<int> * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo
Public Sub New (principals As IReadOnlyList(Of IProperty), Optional storeTypeName As String = Nothing, Optional storeTypeNameBase As String = Nothing, Optional fallbackUnicode As Nullable(Of Boolean) = Nothing, Optional fixedLength As Nullable(Of Boolean) = Nothing, Optional fallbackSize As Nullable(Of Integer) = Nothing, Optional fallbackPrecision As Nullable(Of Integer) = Nothing, Optional fallbackScale As Nullable(Of Integer) = Nothing)
Public Sub New (principals As IReadOnlyList(Of IProperty), Optional storeTypeName As String = Nothing, Optional storeTypeNameBase As String = Nothing, Optional fallbackUnicode As Nullable(Of Boolean) = Nothing, Optional fallbackFixedLength As Nullable(Of Boolean) = Nothing, Optional fallbackSize As Nullable(Of Integer) = Nothing, Optional fallbackPrecision As Nullable(Of Integer) = Nothing, Optional fallbackScale As Nullable(Of Integer) = Nothing)

Parameters

principals
IReadOnlyList<IProperty>

The principal property chain for the property for which mapping is needed.

storeTypeName
String

The provider-specific relational type name for which mapping is needed.

storeTypeNameBase
String

The provider-specific relational type name, with any facets removed.

fallbackUnicode
Nullable<Boolean>

Specifies Unicode or ANSI for the mapping or null for default.

fixedLengthfallbackFixedLength
Nullable<Boolean>

Specifies a fixed length mapping, or null for default.

fallbackSize
Nullable<Int32>

Specifies a size for the mapping, in case one isn't found at the core level, or null for default.

fallbackPrecision
Nullable<Int32>

Specifies a precision for the mapping, in case one isn't found at the core level, or null for default.

fallbackScale
Nullable<Int32>

Specifies a scale for the mapping, in case one isn't found at the core level, or null for default.

Applies to

RelationalTypeMappingInfo(MemberInfo, RelationalTypeMapping, String, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of RelationalTypeMappingInfo.

public RelationalTypeMappingInfo (System.Reflection.MemberInfo member, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? elementTypeMapping = default, string? storeTypeName = default, string? storeTypeNameBase = default, bool? unicode = default, int? size = default, int? precision = default, int? scale = default);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo : System.Reflection.MemberInfo * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping * string * string * Nullable<bool> * Nullable<int> * Nullable<int> * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo
Public Sub New (member As MemberInfo, Optional elementTypeMapping As RelationalTypeMapping = Nothing, Optional storeTypeName As String = Nothing, Optional storeTypeNameBase As String = Nothing, Optional unicode As Nullable(Of Boolean) = Nothing, Optional size As Nullable(Of Integer) = Nothing, Optional precision As Nullable(Of Integer) = Nothing, Optional scale As Nullable(Of Integer) = Nothing)

Parameters

member
MemberInfo

The property or field for which mapping is needed.

elementTypeMapping
RelationalTypeMapping

The type mapping for elements, if known.

storeTypeName
String

The provider-specific relational type name for which mapping is needed.

storeTypeNameBase
String

The provider-specific relational type name, with any facets removed.

unicode
Nullable<Boolean>

Specifies Unicode or ANSI mapping, or null for default.

size
Nullable<Int32>

Specifies a size for the mapping, or null for default.

precision
Nullable<Int32>

Specifies a precision for the mapping, or null for default.

scale
Nullable<Int32>

Specifies a scale for the mapping, or null for default.

Applies to

RelationalTypeMappingInfo(MemberInfo, String, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of RelationalTypeMappingInfo.

public RelationalTypeMappingInfo (System.Reflection.MemberInfo member, string storeTypeName = default, string storeTypeNameBase = default, bool? unicode = default, int? size = default, int? precision = default, int? scale = default);
public RelationalTypeMappingInfo (System.Reflection.MemberInfo member, string? storeTypeName = default, string? storeTypeNameBase = default, bool? unicode = default, int? size = default, int? precision = default, int? scale = default);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo : System.Reflection.MemberInfo * string * string * Nullable<bool> * Nullable<int> * Nullable<int> * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo
Public Sub New (member As MemberInfo, Optional storeTypeName As String = Nothing, Optional storeTypeNameBase As String = Nothing, Optional unicode As Nullable(Of Boolean) = Nothing, Optional size As Nullable(Of Integer) = Nothing, Optional precision As Nullable(Of Integer) = Nothing, Optional scale As Nullable(Of Integer) = Nothing)

Parameters

member
MemberInfo

The property or field for which mapping is needed.

storeTypeName
String

The provider-specific relational type name for which mapping is needed.

storeTypeNameBase
String

The provider-specific relational type name, with any facets removed.

unicode
Nullable<Boolean>

Specifies Unicode or ANSI mapping, or null for default.

size
Nullable<Int32>

Specifies a size for the mapping, or null for default.

precision
Nullable<Int32>

Specifies a precision for the mapping, or null for default.

scale
Nullable<Int32>

Specifies a scale for the mapping, or null for default.

Applies to

RelationalTypeMappingInfo(IElementType, String, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of RelationalTypeMappingInfo.

public RelationalTypeMappingInfo (Microsoft.EntityFrameworkCore.Metadata.IElementType elementType, string? storeTypeName = default, string? storeTypeNameBase = default, bool? fallbackUnicode = default, bool? fallbackFixedLength = default, int? fallbackSize = default, int? fallbackPrecision = default, int? fallbackScale = default);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo : Microsoft.EntityFrameworkCore.Metadata.IElementType * string * string * Nullable<bool> * Nullable<bool> * Nullable<int> * Nullable<int> * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo
Public Sub New (elementType As IElementType, Optional storeTypeName As String = Nothing, Optional storeTypeNameBase As String = Nothing, Optional fallbackUnicode As Nullable(Of Boolean) = Nothing, Optional fallbackFixedLength As Nullable(Of Boolean) = Nothing, Optional fallbackSize As Nullable(Of Integer) = Nothing, Optional fallbackPrecision As Nullable(Of Integer) = Nothing, Optional fallbackScale As Nullable(Of Integer) = Nothing)

Parameters

elementType
IElementType

The collection element for which mapping is needed.

storeTypeName
String

The provider-specific relational type name for which mapping is needed.

storeTypeNameBase
String

The provider-specific relational type name, with any facets removed.

fallbackUnicode
Nullable<Boolean>

Specifies Unicode or ANSI for the mapping or null for the default.

fallbackFixedLength
Nullable<Boolean>

Specifies a fixed length mapping, or null for the default.

fallbackSize
Nullable<Int32>

Specifies a size for the mapping, in case one isn't found at the core level, or null for the default.

fallbackPrecision
Nullable<Int32>

Specifies a precision for the mapping, in case one isn't found at the core level, or null for the default.

fallbackScale
Nullable<Int32>

Specifies a scale for the mapping, in case one isn't found at the core level, or null for the default.

Applies to

RelationalTypeMappingInfo(RelationalTypeMappingInfo, ValueConverterInfo)

Creates a new instance of RelationalTypeMappingInfo with the given ValueConverterInfo.

public RelationalTypeMappingInfo (in Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo source, in Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverterInfo converter);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo : RelationalTypeMappingInfo * ValueConverterInfo -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo
Public Sub New (ByRef source As RelationalTypeMappingInfo, ByRef converter As ValueConverterInfo)

Parameters

source
RelationalTypeMappingInfo

The source info.

converter
ValueConverterInfo

The converter to apply.

Applies to

RelationalTypeMappingInfo(Type)

Creates a new instance of RelationalTypeMappingInfo.

public RelationalTypeMappingInfo (Type type);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo : Type -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo
Public Sub New (type As Type)

Parameters

type
Type

The CLR type in the model for which mapping is needed.

Applies to

RelationalTypeMappingInfo(String)

Creates a new instance of RelationalTypeMappingInfo.

public RelationalTypeMappingInfo (string storeTypeName);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo : string -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo
Public Sub New (storeTypeName As String)

Parameters

storeTypeName
String

The provider-specific relational type name for which mapping is needed.

Applies to

RelationalTypeMappingInfo(MemberInfo)

Creates a new instance of RelationalTypeMappingInfo.

public RelationalTypeMappingInfo (System.Reflection.MemberInfo member);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo : System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo
Public Sub New (member As MemberInfo)

Parameters

member
MemberInfo

The property or field for which mapping is needed.

Applies to

RelationalTypeMappingInfo(IReadOnlyList<IProperty>)

Creates a new instance of RelationalTypeMappingInfo.

public RelationalTypeMappingInfo (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> principals);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo
Public Sub New (principals As IReadOnlyList(Of IProperty))

Parameters

principals
IReadOnlyList<IProperty>

The principal property chain for the property for which mapping is needed.

Applies to

RelationalTypeMappingInfo(String, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of RelationalTypeMappingInfo.

public RelationalTypeMappingInfo (string storeTypeName, string storeTypeNameBase, bool? unicode, int? size, int? precision, int? scale);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo : string * string * Nullable<bool> * Nullable<int> * Nullable<int> * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo
Public Sub New (storeTypeName As String, storeTypeNameBase As String, unicode As Nullable(Of Boolean), size As Nullable(Of Integer), precision As Nullable(Of Integer), scale As Nullable(Of Integer))

Parameters

storeTypeName
String

The provider-specific relational type name for which mapping is needed.

storeTypeNameBase
String

The provider-specific relational type name, with any facets removed.

unicode
Nullable<Boolean>

Specifies Unicode or ANSI mapping, or null for default.

size
Nullable<Int32>

Specifies a size for the mapping, or null for default.

precision
Nullable<Int32>

Specifies a precision for the mapping, or null for default.

scale
Nullable<Int32>

Specifies a scale for the mapping, or null for default.

Applies to