TypeMaterializationInfo 构造函数

定义

重载

TypeMaterializationInfo(Type, IProperty, IRelationalTypeMappingSource, Int32)
已过时.

创建一个新的 TypeMaterializationInfo 实例。

TypeMaterializationInfo(Type, IProperty, RelationalTypeMapping, Nullable<Boolean>)

创建一个新的 TypeMaterializationInfo 实例。

TypeMaterializationInfo(Type, IProperty, IRelationalTypeMappingSource, Nullable<Boolean>, Int32)
已过时.

创建一个新的 TypeMaterializationInfo 实例。

TypeMaterializationInfo(Type, IProperty, IRelationalTypeMappingSource, Nullable<Boolean>, Int32, RelationalTypeMapping)
已过时.

创建一个新的 TypeMaterializationInfo 实例。

TypeMaterializationInfo(Type, IProperty, IRelationalTypeMappingSource, Int32)

注意

现已弃用此 API。

创建一个新的 TypeMaterializationInfo 实例。

public TypeMaterializationInfo (Type modelClrType, Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource typeMappingSource, int index = -1);
[System.Obsolete]
public TypeMaterializationInfo (Type modelClrType, Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource typeMappingSource, int index = -1);
new Microsoft.EntityFrameworkCore.Storage.TypeMaterializationInfo : Type * Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource * int -> Microsoft.EntityFrameworkCore.Storage.TypeMaterializationInfo
[<System.Obsolete>]
new Microsoft.EntityFrameworkCore.Storage.TypeMaterializationInfo : Type * Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource * int -> Microsoft.EntityFrameworkCore.Storage.TypeMaterializationInfo
Public Sub New (modelClrType As Type, property As IProperty, typeMappingSource As IRelationalTypeMappingSource, Optional index As Integer = -1)

参数

modelClrType
Type

转换后模型中所需的类型。

property
IProperty

与类型关联的属性;如果没有, null 则为 。

typeMappingSource
IRelationalTypeMappingSource

如果属性尚未绑定映射,则用于查找映射的类型映射源。

index
Int32

应用于此类型的基础结果集的索引;如果不需要索引映射,则为 -1。

属性

适用于

TypeMaterializationInfo(Type, IProperty, RelationalTypeMapping, Nullable<Boolean>)

创建一个新的 TypeMaterializationInfo 实例。

public TypeMaterializationInfo (Type modelClrType, Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping mapping, bool? nullable = default);
public TypeMaterializationInfo (Type modelClrType, Microsoft.EntityFrameworkCore.Metadata.IProperty? property, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping mapping, bool? nullable = default);
new Microsoft.EntityFrameworkCore.Storage.TypeMaterializationInfo : Type * Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping * Nullable<bool> -> Microsoft.EntityFrameworkCore.Storage.TypeMaterializationInfo
Public Sub New (modelClrType As Type, property As IProperty, mapping As RelationalTypeMapping, Optional nullable As Nullable(Of Boolean) = Nothing)

参数

modelClrType
Type

转换后模型中所需的类型。

property
IProperty

与类型关联的属性;如果没有, null 则为 。

mapping
RelationalTypeMapping

要使用 或 null 推断的类型映射。

nullable
Nullable<Boolean>

一个值,该值指示该值是否可以为 null。

适用于

TypeMaterializationInfo(Type, IProperty, IRelationalTypeMappingSource, Nullable<Boolean>, Int32)

注意

现已弃用此 API。

创建一个新的 TypeMaterializationInfo 实例。

public TypeMaterializationInfo (Type modelClrType, Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource typeMappingSource, bool? fromLeftOuterJoin, int index);
[System.Obsolete]
public TypeMaterializationInfo (Type modelClrType, Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource typeMappingSource, bool? fromLeftOuterJoin, int index);
new Microsoft.EntityFrameworkCore.Storage.TypeMaterializationInfo : Type * Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource * Nullable<bool> * int -> Microsoft.EntityFrameworkCore.Storage.TypeMaterializationInfo
[<System.Obsolete>]
new Microsoft.EntityFrameworkCore.Storage.TypeMaterializationInfo : Type * Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource * Nullable<bool> * int -> Microsoft.EntityFrameworkCore.Storage.TypeMaterializationInfo
Public Sub New (modelClrType As Type, property As IProperty, typeMappingSource As IRelationalTypeMappingSource, fromLeftOuterJoin As Nullable(Of Boolean), index As Integer)

参数

modelClrType
Type

转换后模型中所需的类型。

property
IProperty

与类型关联的属性;如果没有, null 则为 。

typeMappingSource
IRelationalTypeMappingSource

如果属性尚未绑定映射,则用于查找映射的类型映射源。

fromLeftOuterJoin
Nullable<Boolean>

该值是否来自 LEFT OUTER JOIN 操作。

index
Int32

应用于此类型的基础结果集的索引;如果不需要索引映射,则为 -1。

属性

适用于

TypeMaterializationInfo(Type, IProperty, IRelationalTypeMappingSource, Nullable<Boolean>, Int32, RelationalTypeMapping)

注意

现已弃用此 API。

创建一个新的 TypeMaterializationInfo 实例。

public TypeMaterializationInfo (Type modelClrType, Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource typeMappingSource, bool? fromLeftOuterJoin, int index = -1, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping mapping = default);
[System.Obsolete]
public TypeMaterializationInfo (Type modelClrType, Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource typeMappingSource, bool? fromLeftOuterJoin, int index = -1, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping mapping = default);
new Microsoft.EntityFrameworkCore.Storage.TypeMaterializationInfo : Type * Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource * Nullable<bool> * int * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Storage.TypeMaterializationInfo
[<System.Obsolete>]
new Microsoft.EntityFrameworkCore.Storage.TypeMaterializationInfo : Type * Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource * Nullable<bool> * int * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Storage.TypeMaterializationInfo
Public Sub New (modelClrType As Type, property As IProperty, typeMappingSource As IRelationalTypeMappingSource, fromLeftOuterJoin As Nullable(Of Boolean), Optional index As Integer = -1, Optional mapping As RelationalTypeMapping = Nothing)

参数

modelClrType
Type

转换后模型中所需的类型。

property
IProperty

与类型关联的属性;如果没有, null 则为 。

typeMappingSource
IRelationalTypeMappingSource

如果属性尚未绑定映射,则用于查找映射的类型映射源。

fromLeftOuterJoin
Nullable<Boolean>

该值是否来自 LEFT OUTER JOIN 操作。

index
Int32

应用于此类型的基础结果集的索引;如果不需要索引映射,则为 -1。

mapping
RelationalTypeMapping

要使用 或 null 推断的类型映射。

属性

适用于