RelationalTypeMappingInfo 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
RelationalTypeMappingInfo(IProperty)
建立 RelationalTypeMappingInfo 的新執行個體。
public RelationalTypeMappingInfo (Microsoft.EntityFrameworkCore.Metadata.IProperty property);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo
Public Sub New (property As IProperty)
參數
- property
- IProperty
需要對應的屬性。
適用於
RelationalTypeMappingInfo(Type, RelationalTypeMapping, String, String, Boolean, Nullable<Boolean>, Nullable<Int32>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<DbType>)
建立 TypeMappingInfo 的新執行個體。
public RelationalTypeMappingInfo (Type? type = default, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? elementTypeMapping = default, string? storeTypeName = default, string? storeTypeNameBase = default, bool keyOrIndex = false, bool? unicode = default, int? size = default, bool? rowVersion = default, bool? fixedLength = default, int? precision = default, int? scale = default, System.Data.DbType? dbType = default);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo : Type * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping * string * string * bool * Nullable<bool> * Nullable<int> * Nullable<bool> * Nullable<bool> * Nullable<int> * Nullable<int> * Nullable<System.Data.DbType> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo
Public Sub New (Optional type As Type = Nothing, Optional elementTypeMapping As RelationalTypeMapping = Nothing, Optional storeTypeName As String = Nothing, Optional storeTypeNameBase As String = 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 fixedLength As Nullable(Of Boolean) = Nothing, Optional precision As Nullable(Of Integer) = Nothing, Optional scale As Nullable(Of Integer) = Nothing, Optional dbType As Nullable(Of DbType) = Nothing)
參數
- type
- Type
需要對應之模型中的 CLR 類型。
- elementTypeMapping
- RelationalTypeMapping
如果已知,專案的類型對應。
- storeTypeName
- String
資料庫類型名稱。
- storeTypeNameBase
- String
提供者特定的關聯式類型名稱,移除任何 Facet。
- keyOrIndex
- Boolean
如果 true
為 ,則可能會傳回索引鍵或索引的特殊對應。
適用於
RelationalTypeMappingInfo(Type, String, String, Boolean, Nullable<Boolean>, Nullable<Int32>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>)
建立 TypeMappingInfo 的新執行個體。
public RelationalTypeMappingInfo (Type type, string storeTypeName = default, string storeTypeNameBase = default, bool keyOrIndex = false, bool? unicode = default, int? size = default, bool? rowVersion = default, bool? fixedLength = default, int? precision = default, int? scale = default);
public RelationalTypeMappingInfo (Type type, string? storeTypeName = default, string? storeTypeNameBase = default, bool keyOrIndex = false, bool? unicode = default, int? size = default, bool? rowVersion = default, bool? fixedLength = default, int? precision = default, int? scale = default);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo : Type * string * string * bool * Nullable<bool> * Nullable<int> * Nullable<bool> * Nullable<bool> * Nullable<int> * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo
Public Sub New (type As Type, Optional storeTypeName As String = Nothing, Optional storeTypeNameBase As String = 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 fixedLength As Nullable(Of Boolean) = Nothing, Optional precision As Nullable(Of Integer) = Nothing, Optional scale As Nullable(Of Integer) = Nothing)
參數
- type
- Type
需要對應之模型中的 CLR 類型。
- storeTypeName
- String
資料庫類型名稱。
- storeTypeNameBase
- String
提供者特定的關聯式類型名稱,移除任何 Facet。
- keyOrIndex
- Boolean
如果 true
為 ,則可能會傳回索引鍵或索引的特殊對應。
適用於
RelationalTypeMappingInfo(Type, String, Boolean, Nullable<Boolean>, Nullable<Int32>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>)
建立 TypeMappingInfo 的新執行個體。
public RelationalTypeMappingInfo (Type type, string storeTypeName, bool keyOrIndex, bool? unicode, int? size, bool? rowVersion, bool? fixedLength, int? precision, int? scale);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo : Type * string * bool * Nullable<bool> * Nullable<int> * Nullable<bool> * Nullable<bool> * Nullable<int> * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo
Public Sub New (type As Type, storeTypeName As String, keyOrIndex As Boolean, unicode As Nullable(Of Boolean), size As Nullable(Of Integer), rowVersion As Nullable(Of Boolean), fixedLength As Nullable(Of Boolean), precision As Nullable(Of Integer), scale As Nullable(Of Integer))
參數
- type
- Type
需要對應之模型中的 CLR 類型。
- storeTypeName
- String
資料庫類型名稱。
- keyOrIndex
- Boolean
如果 true
為 ,則可能會傳回索引鍵或索引的特殊對應。
適用於
RelationalTypeMappingInfo(IReadOnlyList<IProperty>, String, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)
建立 RelationalTypeMappingInfo 的新執行個體。
public RelationalTypeMappingInfo (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> principals, string storeTypeName = default, string storeTypeNameBase = default, bool? fallbackUnicode = default, bool? fixedLength = default, int? fallbackSize = default, int? fallbackPrecision = default, int? fallbackScale = default);
public RelationalTypeMappingInfo (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> principals, string? storeTypeName = default, string? storeTypeNameBase = default, bool? fallbackUnicode = default, bool? fixedLength = default, int? fallbackSize = default, int? fallbackPrecision = default, int? fallbackScale = default);
public RelationalTypeMappingInfo (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> principals, string? storeTypeName = default, string? storeTypeNameBase = default, bool? fallbackUnicode = default, bool? fallbackFixedLength = default, int? fallbackSize = default, int? fallbackPrecision = default, int? fallbackScale = default);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> * string * string * Nullable<bool> * Nullable<bool> * Nullable<int> * Nullable<int> * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> * string * string * Nullable<bool> * Nullable<bool> * Nullable<int> * Nullable<int> * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo
Public Sub New (principals As IReadOnlyList(Of IProperty), Optional storeTypeName As String = Nothing, Optional storeTypeNameBase As String = Nothing, Optional fallbackUnicode As Nullable(Of Boolean) = Nothing, Optional fixedLength 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)
Public Sub New (principals As IReadOnlyList(Of IProperty), Optional storeTypeName As String = Nothing, Optional storeTypeNameBase As String = Nothing, Optional fallbackUnicode As Nullable(Of Boolean) = Nothing, Optional fallbackFixedLength 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>
需要對應之屬性的主體屬性鏈結。
- storeTypeName
- String
需要對應之提供者特定的關聯式別名稱。
- storeTypeNameBase
- String
提供者特定的關聯式類型名稱,移除任何 Facet。
適用於
RelationalTypeMappingInfo(MemberInfo, RelationalTypeMapping, String, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)
建立 RelationalTypeMappingInfo 的新執行個體。
public RelationalTypeMappingInfo (System.Reflection.MemberInfo member, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? elementTypeMapping = default, string? storeTypeName = default, string? storeTypeNameBase = default, bool? unicode = default, int? size = default, int? precision = default, int? scale = default);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo : System.Reflection.MemberInfo * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping * string * string * Nullable<bool> * Nullable<int> * Nullable<int> * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo
Public Sub New (member As MemberInfo, Optional elementTypeMapping As RelationalTypeMapping = Nothing, Optional storeTypeName As String = Nothing, Optional storeTypeNameBase As String = 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
- RelationalTypeMapping
如果已知,專案的類型對應。
- storeTypeName
- String
需要對應之提供者特定的關聯式別名稱。
- storeTypeNameBase
- String
提供者特定的關聯式類型名稱,移除任何 Facet。
適用於
RelationalTypeMappingInfo(MemberInfo, String, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)
建立 RelationalTypeMappingInfo 的新執行個體。
public RelationalTypeMappingInfo (System.Reflection.MemberInfo member, string storeTypeName = default, string storeTypeNameBase = default, bool? unicode = default, int? size = default, int? precision = default, int? scale = default);
public RelationalTypeMappingInfo (System.Reflection.MemberInfo member, string? storeTypeName = default, string? storeTypeNameBase = default, bool? unicode = default, int? size = default, int? precision = default, int? scale = default);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo : System.Reflection.MemberInfo * string * string * Nullable<bool> * Nullable<int> * Nullable<int> * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo
Public Sub New (member As MemberInfo, Optional storeTypeName As String = Nothing, Optional storeTypeNameBase As String = 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
需要對應的屬性或欄位。
- storeTypeName
- String
需要對應之提供者特定的關聯式別名稱。
- storeTypeNameBase
- String
提供者特定的關聯式類型名稱,移除任何 Facet。
適用於
RelationalTypeMappingInfo(IElementType, String, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)
建立 RelationalTypeMappingInfo 的新執行個體。
public RelationalTypeMappingInfo (Microsoft.EntityFrameworkCore.Metadata.IElementType elementType, string? storeTypeName = default, string? storeTypeNameBase = default, bool? fallbackUnicode = default, bool? fallbackFixedLength = default, int? fallbackSize = default, int? fallbackPrecision = default, int? fallbackScale = default);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo : Microsoft.EntityFrameworkCore.Metadata.IElementType * string * string * Nullable<bool> * Nullable<bool> * Nullable<int> * Nullable<int> * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo
Public Sub New (elementType As IElementType, Optional storeTypeName As String = Nothing, Optional storeTypeNameBase As String = Nothing, Optional fallbackUnicode As Nullable(Of Boolean) = Nothing, Optional fallbackFixedLength 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
需要對應之集合專案。
- storeTypeName
- String
需要對應之提供者特定的關聯式別名稱。
- storeTypeNameBase
- String
提供者特定的關聯式類型名稱,移除任何 Facet。
適用於
RelationalTypeMappingInfo(RelationalTypeMappingInfo, ValueConverterInfo)
使用指定的 ValueConverterInfo 建立 的新實例 RelationalTypeMappingInfo 。
public RelationalTypeMappingInfo (in Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo source, in Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverterInfo converter);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo : RelationalTypeMappingInfo * ValueConverterInfo -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo
Public Sub New (ByRef source As RelationalTypeMappingInfo, ByRef converter As ValueConverterInfo)
參數
- source
- RelationalTypeMappingInfo
來源資訊。
- converter
- ValueConverterInfo
要套用的轉換器。
適用於
RelationalTypeMappingInfo(Type)
建立 RelationalTypeMappingInfo 的新執行個體。
public RelationalTypeMappingInfo (Type type);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo : Type -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo
Public Sub New (type As Type)
參數
- type
- Type
需要對應之模型中的 CLR 類型。
適用於
RelationalTypeMappingInfo(String)
建立 RelationalTypeMappingInfo 的新執行個體。
public RelationalTypeMappingInfo (string storeTypeName);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo : string -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo
Public Sub New (storeTypeName As String)
參數
- storeTypeName
- String
需要對應的提供者特定關聯式別名稱。
適用於
RelationalTypeMappingInfo(MemberInfo)
建立 RelationalTypeMappingInfo 的新執行個體。
public RelationalTypeMappingInfo (System.Reflection.MemberInfo member);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo : System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo
Public Sub New (member As MemberInfo)
參數
- member
- MemberInfo
需要對應的屬性或欄位。
適用於
RelationalTypeMappingInfo(IReadOnlyList<IProperty>)
建立 RelationalTypeMappingInfo 的新執行個體。
public RelationalTypeMappingInfo (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> principals);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo
Public Sub New (principals As IReadOnlyList(Of IProperty))
參數
- principals
- IReadOnlyList<IProperty>
需要對應之屬性的主體屬性鏈結。
適用於
RelationalTypeMappingInfo(String, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)
建立 RelationalTypeMappingInfo 的新執行個體。
public RelationalTypeMappingInfo (string storeTypeName, string storeTypeNameBase, bool? unicode, int? size, int? precision, int? scale);
new Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo : string * string * Nullable<bool> * Nullable<int> * Nullable<int> * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingInfo
Public Sub New (storeTypeName As String, storeTypeNameBase As String, unicode As Nullable(Of Boolean), size As Nullable(Of Integer), precision As Nullable(Of Integer), scale As Nullable(Of Integer))
參數
- storeTypeName
- String
需要對應的提供者特定關聯式別名稱。
- storeTypeNameBase
- String
提供者特定的關聯式別名稱,已移除任何 Facet。