RelationalConverterMappingHints 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
RelationalConverterMappingHints(Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Boolean>, Nullable<Boolean>, Func<IProperty, IEntityType,ValueGenerator>)
建立新的 ConverterMappingHints 執行個體。 實例中包含的任何提示都可以 null
指出它尚未指定。
public RelationalConverterMappingHints (int? size = default, int? precision = default, int? scale = default, bool? unicode = default, bool? fixedLength = default, Func<Microsoft.EntityFrameworkCore.Metadata.IProperty,Microsoft.EntityFrameworkCore.Metadata.IEntityType,Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator> valueGeneratorFactory = default);
public RelationalConverterMappingHints (int? size = default, int? precision = default, int? scale = default, bool? unicode = default, bool? fixedLength = default, Func<Microsoft.EntityFrameworkCore.Metadata.IProperty,Microsoft.EntityFrameworkCore.Metadata.IEntityType,Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator>? valueGeneratorFactory = default);
new Microsoft.EntityFrameworkCore.Storage.ValueConversion.RelationalConverterMappingHints : Nullable<int> * Nullable<int> * Nullable<int> * Nullable<bool> * Nullable<bool> * Func<Microsoft.EntityFrameworkCore.Metadata.IProperty, Microsoft.EntityFrameworkCore.Metadata.IEntityType, Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator> -> Microsoft.EntityFrameworkCore.Storage.ValueConversion.RelationalConverterMappingHints
Public Sub New (Optional size As Nullable(Of Integer) = Nothing, Optional precision As Nullable(Of Integer) = Nothing, Optional scale As Nullable(Of Integer) = Nothing, Optional unicode As Nullable(Of Boolean) = Nothing, Optional fixedLength As Nullable(Of Boolean) = Nothing, Optional valueGeneratorFactory As Func(Of IProperty, IEntityType, ValueGenerator) = Nothing)
參數
- valueGeneratorFactory
- Func<IProperty,IEntityType,ValueGenerator>
用於建立特定 ValueGenerator 的選擇性處理站。
適用於
RelationalConverterMappingHints(Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Boolean>, Nullable<Boolean>, Func<IProperty, ITypeBase,ValueGenerator>)
警告
Use the overload with more parameters.
建立新的 ConverterMappingHints 執行個體。 實例中包含的任何提示都可以 null
指出它尚未指定。
[System.Obsolete("Use the overload with more parameters.")]
public RelationalConverterMappingHints (int? size, int? precision, int? scale, bool? unicode, bool? fixedLength, Func<Microsoft.EntityFrameworkCore.Metadata.IProperty,Microsoft.EntityFrameworkCore.Metadata.ITypeBase,Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator>? valueGeneratorFactory);
[<System.Obsolete("Use the overload with more parameters.")>]
new Microsoft.EntityFrameworkCore.Storage.ValueConversion.RelationalConverterMappingHints : Nullable<int> * Nullable<int> * Nullable<int> * Nullable<bool> * Nullable<bool> * Func<Microsoft.EntityFrameworkCore.Metadata.IProperty, Microsoft.EntityFrameworkCore.Metadata.ITypeBase, Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator> -> Microsoft.EntityFrameworkCore.Storage.ValueConversion.RelationalConverterMappingHints
Public Sub New (size As Nullable(Of Integer), precision As Nullable(Of Integer), scale As Nullable(Of Integer), unicode As Nullable(Of Boolean), fixedLength As Nullable(Of Boolean), valueGeneratorFactory As Func(Of IProperty, ITypeBase, ValueGenerator))
參數
- valueGeneratorFactory
- Func<IProperty,ITypeBase,ValueGenerator>
用於建立特定 ValueGenerator 的選擇性處理站。
- 屬性
適用於
RelationalConverterMappingHints(Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Boolean>, Nullable<Boolean>, Func<IProperty, IEntityType,ValueGenerator>, Nullable<DbType>)
建立新的 ConverterMappingHints 執行個體。 實例中包含的任何提示都可以 null
指出它尚未指定。
public RelationalConverterMappingHints (int? size = default, int? precision = default, int? scale = default, bool? unicode = default, bool? fixedLength = default, Func<Microsoft.EntityFrameworkCore.Metadata.IProperty,Microsoft.EntityFrameworkCore.Metadata.IEntityType,Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator>? valueGeneratorFactory = default, System.Data.DbType? dbType = default);
new Microsoft.EntityFrameworkCore.Storage.ValueConversion.RelationalConverterMappingHints : Nullable<int> * Nullable<int> * Nullable<int> * Nullable<bool> * Nullable<bool> * Func<Microsoft.EntityFrameworkCore.Metadata.IProperty, Microsoft.EntityFrameworkCore.Metadata.IEntityType, Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator> * Nullable<System.Data.DbType> -> Microsoft.EntityFrameworkCore.Storage.ValueConversion.RelationalConverterMappingHints
Public Sub New (Optional size As Nullable(Of Integer) = Nothing, Optional precision As Nullable(Of Integer) = Nothing, Optional scale As Nullable(Of Integer) = Nothing, Optional unicode As Nullable(Of Boolean) = Nothing, Optional fixedLength As Nullable(Of Boolean) = Nothing, Optional valueGeneratorFactory As Func(Of IProperty, IEntityType, ValueGenerator) = Nothing, Optional dbType As Nullable(Of DbType) = Nothing)
參數
- valueGeneratorFactory
- Func<IProperty,IEntityType,ValueGenerator>
用於建立特定 ValueGenerator 的選擇性處理站。