TypeMaterializationInfo 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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
推斷一個類型對應。
適用於
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
如果屬性尚未系結對應,則為用來尋找對應的型別對應。
- 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
如果屬性尚未系結對應,則為用來尋找對應的型別對應。
- index
- Int32
應該用於此類型之基礎結果集的索引,如果不需要任何索引對應,則為 -1。
- mapping
- RelationalTypeMapping
要使用的型別對應,或 null
推斷一個類型對應。
- 屬性
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應