TypeMappingInfo 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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
需要對應之屬性的集合專案。
適用於
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>
需要對應之屬性的主體屬性鏈結。
適用於
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
需要對應的屬性或欄位。
適用於
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
要套用的轉換器。
適用於
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
如果已知,專案的類型對應。
適用於
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
為 ,則可能會傳回索引鍵或索引的特殊對應。
適用於
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
為 ,則可能會傳回索引鍵或索引的特殊對應。