TypeMappingInfo 构造函数

定义

重载

TypeMappingInfo(IProperty)

创建 TypeMappingInfo 的新实例。

TypeMappingInfo(IReadOnlyList<IProperty>)

创建 TypeMappingInfo 的新实例。

TypeMappingInfo(MemberInfo)

创建 TypeMappingInfo 的新实例。

TypeMappingInfo(Type)

创建 TypeMappingInfo 的新实例。

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

创建 TypeMappingInfo 的新实例。

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

创建 TypeMappingInfo 的新实例。

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

创建 TypeMappingInfo 的新实例。

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

使用给定 ValueConverterInfo的 创建 的新实例TypeMappingInfo

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

创建 TypeMappingInfo 的新实例。

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

创建 TypeMappingInfo 的新实例。

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

创建 TypeMappingInfo 的新实例。

TypeMappingInfo(IProperty)

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

参数

property
IProperty

需要映射的属性。

适用于

TypeMappingInfo(IReadOnlyList<IProperty>)

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

参数

principals
IReadOnlyList<IProperty>

需要映射的属性的主体属性链。

适用于

TypeMappingInfo(MemberInfo)

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

参数

member
MemberInfo

需要映射的属性或字段。

适用于

TypeMappingInfo(Type)

创建 TypeMappingInfo 的新实例。

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

参数

type
Type

模型中需要映射的 CLR 类型。

适用于

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

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

参数

elementType
IElementType

需要映射的属性的集合元素。

fallbackUnicode
Nullable<Boolean>

为映射或默认值指定 Unicode 或 null ANSI。

fallbackSize
Nullable<Int32>

指定映射的大小,以防在核心级别或 null 默认级别找不到映射。

fallbackPrecision
Nullable<Int32>

指定映射的精度,以防在核心级别或 null 默认值找不到。

fallbackScale
Nullable<Int32>

指定映射的缩放比例,以防在核心级别或 null 默认级别找不到。

适用于

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

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

参数

principals
IReadOnlyList<IProperty>

需要映射的属性的主体属性链。

fallbackUnicode
Nullable<Boolean>

指定用于映射的 Unicode 或 ANSI 或 null 默认值。

fallbackSize
Nullable<Int32>

指定映射的大小,以防在核心级别或 null 默认位置找不到映射。

fallbackPrecision
Nullable<Int32>

指定映射的精度,以防在核心级别或 null 默认值找不到。

fallbackScale
Nullable<Int32>

指定映射的缩放比例,以防在核心级别或 null 默认级别找不到映射。

适用于

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

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

参数

member
MemberInfo

需要映射的属性或字段。

unicode
Nullable<Boolean>

指定 Unicode 或 ANSI 映射,或者 null 指定默认值。

size
Nullable<Int32>

指定映射 null 或默认值的大小。

precision
Nullable<Int32>

指定映射的精度,或 null 默认值的精度。

scale
Nullable<Int32>

指定映射 null 或默认值的比例。

适用于

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

使用给定 ValueConverterInfo的 创建 的新实例TypeMappingInfo

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)

参数

source
TypeMappingInfo

源信息。

converter
ValueConverterInfo

要应用的转换器。

unicode
Nullable<Boolean>

指定 Unicode 或 ANSI 映射,或者 null 指定默认值。

size
Nullable<Int32>

指定映射 null 或默认值的大小。

precision
Nullable<Int32>

指定映射的精度,或 null 默认值的精度。

scale
Nullable<Int32>

指定映射 null 或默认值的比例。

适用于

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

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

参数

member
MemberInfo

需要映射的属性或字段。

elementTypeMapping
CoreTypeMapping

元素的类型映射(如果已知)。

unicode
Nullable<Boolean>

指定 Unicode 或 ANSI 映射,或者 null 指定默认值。

size
Nullable<Int32>

指定映射 null 或默认值的大小。

precision
Nullable<Int32>

指定映射的精度,或 null 默认值的精度。

scale
Nullable<Int32>

指定映射 null 或默认值的比例。

适用于

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

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

参数

type
Type

模型中需要映射的 CLR 类型。

keyOrIndex
Boolean

如果 true为 ,则可能会返回键或索引的特殊映射。

unicode
Nullable<Boolean>

指定 Unicode 或 ANSI 映射,或者 null 指定默认值。

size
Nullable<Int32>

指定映射 null 或默认值的大小。

rowVersion
Nullable<Boolean>

指定行版本,或 null 作为默认值。

precision
Nullable<Int32>

指定映射的精度,或 null 默认值的精度。

scale
Nullable<Int32>

指定映射 null 或默认值的比例。

适用于

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

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

参数

type
Type

模型中需要映射的 CLR 类型。

elementTypeMapping
CoreTypeMapping

元素的类型映射(如果已知)。

keyOrIndex
Boolean

如果 true为 ,则可能会返回键或索引的特殊映射。

unicode
Nullable<Boolean>

指定 Unicode 或 ANSI 映射,或者 null 指定默认值。

size
Nullable<Int32>

指定映射 null 或默认值的大小。

rowVersion
Nullable<Boolean>

指定行版本,或 null 作为默认值。

precision
Nullable<Int32>

指定映射的精度,或 null 默认值的精度。

scale
Nullable<Int32>

指定映射 null 或默认值的比例。

适用于