Share via


TypeMappingInfo Constructors

Definition

Overloads

TypeMappingInfo(IProperty)

Creates a new instance of TypeMappingInfo.

TypeMappingInfo(IReadOnlyList<IProperty>)

Creates a new instance of TypeMappingInfo.

TypeMappingInfo(MemberInfo)

Creates a new instance of TypeMappingInfo.

TypeMappingInfo(Type)

Creates a new instance of TypeMappingInfo.

TypeMappingInfo(IElementType, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of TypeMappingInfo.

TypeMappingInfo(IReadOnlyList<IProperty>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of TypeMappingInfo.

TypeMappingInfo(MemberInfo, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of TypeMappingInfo.

TypeMappingInfo(TypeMappingInfo, ValueConverterInfo, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of TypeMappingInfo with the given ValueConverterInfo.

TypeMappingInfo(MemberInfo, CoreTypeMapping, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of TypeMappingInfo.

TypeMappingInfo(Type, Boolean, Nullable<Boolean>, Nullable<Int32>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of TypeMappingInfo.

TypeMappingInfo(Type, CoreTypeMapping, Boolean, Nullable<Boolean>, Nullable<Int32>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of TypeMappingInfo.

TypeMappingInfo(IProperty)

Creates a new instance of TypeMappingInfo.

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

Parameters

property
IProperty

The property for which mapping is needed.

Applies to

TypeMappingInfo(IReadOnlyList<IProperty>)

Creates a new instance of TypeMappingInfo.

public TypeMappingInfo (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> principals);
new Microsoft.EntityFrameworkCore.Storage.TypeMappingInfo : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> -> Microsoft.EntityFrameworkCore.Storage.TypeMappingInfo
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

TypeMappingInfo(MemberInfo)

Creates a new instance of TypeMappingInfo.

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

Parameters

member
MemberInfo

The property or field for which mapping is needed.

Applies to

TypeMappingInfo(Type)

Creates a new instance of TypeMappingInfo.

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

Parameters

type
Type

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

Applies to

TypeMappingInfo(IElementType, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of TypeMappingInfo.

public TypeMappingInfo (Microsoft.EntityFrameworkCore.Metadata.IElementType elementType, bool? fallbackUnicode = default, int? fallbackSize = default, int? fallbackPrecision = default, int? fallbackScale = default);
new Microsoft.EntityFrameworkCore.Storage.TypeMappingInfo : Microsoft.EntityFrameworkCore.Metadata.IElementType * Nullable<bool> * Nullable<int> * Nullable<int> * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.TypeMappingInfo
Public Sub New (elementType As IElementType, Optional fallbackUnicode 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 the property for which mapping is needed.

fallbackUnicode
Nullable<Boolean>

Specifies Unicode or ANSI for the 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

TypeMappingInfo(IReadOnlyList<IProperty>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of TypeMappingInfo.

public TypeMappingInfo (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> principals, bool? fallbackUnicode = default, int? fallbackSize = default, int? fallbackPrecision = default, int? fallbackScale = default);
new Microsoft.EntityFrameworkCore.Storage.TypeMappingInfo : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> * Nullable<bool> * Nullable<int> * Nullable<int> * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.TypeMappingInfo
Public Sub New (principals As IReadOnlyList(Of IProperty), Optional fallbackUnicode 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.

fallbackUnicode
Nullable<Boolean>

Specifies Unicode or ANSI for the 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

TypeMappingInfo(MemberInfo, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of TypeMappingInfo.

public TypeMappingInfo (System.Reflection.MemberInfo member, bool? unicode = default, int? size = default, int? precision = default, int? scale = default);
new Microsoft.EntityFrameworkCore.Storage.TypeMappingInfo : System.Reflection.MemberInfo * Nullable<bool> * Nullable<int> * Nullable<int> * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.TypeMappingInfo
Public Sub New (member As MemberInfo, 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.

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

TypeMappingInfo(TypeMappingInfo, ValueConverterInfo, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of TypeMappingInfo with the given ValueConverterInfo.

public TypeMappingInfo (Microsoft.EntityFrameworkCore.Storage.TypeMappingInfo source, Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverterInfo converter, bool? unicode = default, int? size = default, int? precision = default, int? scale = default);
new Microsoft.EntityFrameworkCore.Storage.TypeMappingInfo : Microsoft.EntityFrameworkCore.Storage.TypeMappingInfo * Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverterInfo * Nullable<bool> * Nullable<int> * Nullable<int> * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.TypeMappingInfo
Public Sub New (source As TypeMappingInfo, converter As ValueConverterInfo, 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

source
TypeMappingInfo

The source info.

converter
ValueConverterInfo

The converter to apply.

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

TypeMappingInfo(MemberInfo, CoreTypeMapping, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of TypeMappingInfo.

public TypeMappingInfo (System.Reflection.MemberInfo member, Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping? elementTypeMapping = default, bool? unicode = default, int? size = default, int? precision = default, int? scale = default);
new Microsoft.EntityFrameworkCore.Storage.TypeMappingInfo : System.Reflection.MemberInfo * Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping * Nullable<bool> * Nullable<int> * Nullable<int> * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.TypeMappingInfo
Public Sub New (member As MemberInfo, Optional elementTypeMapping As CoreTypeMapping = 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
CoreTypeMapping

The type mapping for elements, if known.

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

TypeMappingInfo(Type, Boolean, Nullable<Boolean>, Nullable<Int32>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of TypeMappingInfo.

public TypeMappingInfo (Type type, bool keyOrIndex, bool? unicode = default, int? size = default, bool? rowVersion = default, int? precision = default, int? scale = default);
public TypeMappingInfo (Type type = default, bool keyOrIndex = false, bool? unicode = default, int? size = default, bool? rowVersion = default, int? precision = default, int? scale = default);
public TypeMappingInfo (Type? type = default, bool keyOrIndex = false, bool? unicode = default, int? size = default, bool? rowVersion = default, int? precision = default, int? scale = default);
new Microsoft.EntityFrameworkCore.Storage.TypeMappingInfo : Type * bool * Nullable<bool> * Nullable<int> * Nullable<bool> * Nullable<int> * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.TypeMappingInfo
Public Sub New (type As Type, keyOrIndex As Boolean, Optional unicode As Nullable(Of Boolean) = Nothing, Optional size As Nullable(Of Integer) = Nothing, Optional rowVersion As Nullable(Of Boolean) = Nothing, Optional precision As Nullable(Of Integer) = Nothing, Optional scale As Nullable(Of Integer) = Nothing)
Public Sub New (Optional type As Type = 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 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.

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.

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

TypeMappingInfo(Type, CoreTypeMapping, Boolean, Nullable<Boolean>, Nullable<Int32>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of TypeMappingInfo.

public TypeMappingInfo (Type? type = default, Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping? elementTypeMapping = default, bool keyOrIndex = false, bool? unicode = default, int? size = default, bool? rowVersion = default, int? precision = default, int? scale = default);
new Microsoft.EntityFrameworkCore.Storage.TypeMappingInfo : Type * Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping * bool * Nullable<bool> * Nullable<int> * Nullable<bool> * Nullable<int> * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.TypeMappingInfo
Public Sub New (Optional type As Type = Nothing, Optional elementTypeMapping As CoreTypeMapping = 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 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.

elementTypeMapping
CoreTypeMapping

The type mapping for elements, if known.

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.

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