Share via


ConverterMappingHints Constructor

Definition

Creates a new ConverterMappingHints instance. Any hint contained in the instance can be null to indicate it has not been specified.

public ConverterMappingHints (int? size = default, int? precision = default, int? scale = default, bool? unicode = default, Func<Microsoft.EntityFrameworkCore.Metadata.IProperty,Microsoft.EntityFrameworkCore.Metadata.IEntityType,Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator> valueGeneratorFactory = default);
public ConverterMappingHints (int? size = default, int? precision = default, int? scale = default, bool? unicode = default, Func<Microsoft.EntityFrameworkCore.Metadata.IProperty,Microsoft.EntityFrameworkCore.Metadata.IEntityType,Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator>? valueGeneratorFactory = default);
new Microsoft.EntityFrameworkCore.Storage.ValueConversion.ConverterMappingHints : Nullable<int> * Nullable<int> * Nullable<int> * Nullable<bool> * Func<Microsoft.EntityFrameworkCore.Metadata.IProperty, Microsoft.EntityFrameworkCore.Metadata.IEntityType, Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator> -> Microsoft.EntityFrameworkCore.Storage.ValueConversion.ConverterMappingHints
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 valueGeneratorFactory As Func(Of IProperty, IEntityType, ValueGenerator) = Nothing)

Parameters

size
Nullable<Int32>

The suggested size of the mapped data type.

precision
Nullable<Int32>

The suggested precision of the mapped data type.

scale
Nullable<Int32>

The suggested scale of the mapped data type.

unicode
Nullable<Boolean>

Whether or not the mapped data type should support Unicode.

valueGeneratorFactory
Func<IProperty,IEntityType,ValueGenerator>

An optional factory for creating a specific ValueGenerator.

Remarks

See EF Core value converters for more information and examples.

Applies to