RelationalConverterMappingHints 构造函数

定义

重载

RelationalConverterMappingHints(Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Boolean>, Nullable<Boolean>, Func<IProperty, IEntityType,ValueGenerator>)

创建一个新的 ConverterMappingHints 实例。 实例中包含的任何提示都可以 null 指示它尚未指定。

RelationalConverterMappingHints(Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Boolean>, Nullable<Boolean>, Func<IProperty, ITypeBase,ValueGenerator>)
已过时.

创建一个新的 ConverterMappingHints 实例。 实例中包含的任何提示都可以 null 指示它尚未指定。

RelationalConverterMappingHints(Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Boolean>, Nullable<Boolean>, Func<IProperty, IEntityType,ValueGenerator>, Nullable<DbType>)

创建一个新的 ConverterMappingHints 实例。 实例中包含的任何提示都可以 null 指示它尚未指定。

RelationalConverterMappingHints(Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Boolean>, Nullable<Boolean>, Func<IProperty, IEntityType,ValueGenerator>)

Source:
RelationalConverterMappingHints.cs
Source:
RelationalConverterMappingHints.cs
Source:
RelationalConverterMappingHints.cs
Source:
RelationalConverterMappingHints.cs
Source:
RelationalConverterMappingHints.cs
Source:
RelationalConverterMappingHints.cs
Source:
RelationalConverterMappingHints.cs

创建一个新的 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)

参数

size
Nullable<Int32>

映射数据类型的建议大小。

precision
Nullable<Int32>

映射数据类型的建议精度。

scale
Nullable<Int32>

映射数据类型的建议小数位数。

unicode
Nullable<Boolean>

映射的数据类型是否应支持 Unicode。

fixedLength
Nullable<Boolean>

映射的数据类型是否为固定长度。

valueGeneratorFactory
Func<IProperty,IEntityType,ValueGenerator>

用于创建特定 ValueGenerator的可选工厂。

适用于

RelationalConverterMappingHints(Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Boolean>, Nullable<Boolean>, Func<IProperty, ITypeBase,ValueGenerator>)

Source:
RelationalConverterMappingHints.cs
Source:
RelationalConverterMappingHints.cs

注意

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))

参数

size
Nullable<Int32>

映射数据类型的建议大小。

precision
Nullable<Int32>

映射数据类型的建议精度。

scale
Nullable<Int32>

映射数据类型的建议小数位数。

unicode
Nullable<Boolean>

映射的数据类型是否应支持 Unicode。

fixedLength
Nullable<Boolean>

映射的数据类型是否为固定长度。

valueGeneratorFactory
Func<IProperty,ITypeBase,ValueGenerator>

用于创建特定 ValueGenerator的可选工厂。

属性

适用于

RelationalConverterMappingHints(Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Boolean>, Nullable<Boolean>, Func<IProperty, IEntityType,ValueGenerator>, Nullable<DbType>)

Source:
RelationalConverterMappingHints.cs
Source:
RelationalConverterMappingHints.cs

创建一个新的 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)

参数

size
Nullable<Int32>

映射数据类型的建议大小。

precision
Nullable<Int32>

映射数据类型的建议精度。

scale
Nullable<Int32>

映射数据类型的建议小数位数。

unicode
Nullable<Boolean>

映射的数据类型是否应支持 Unicode。

fixedLength
Nullable<Boolean>

映射的数据类型是否为固定长度。

valueGeneratorFactory
Func<IProperty,IEntityType,ValueGenerator>

用于创建特定 ValueGenerator的可选工厂。

dbType
Nullable<DbType>

建议的 DbType

适用于