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的可选工厂。