ConverterMappingHints Class

Definition

Specifies hints used by the type mapper when mapping using a ValueConverter.

public class ConverterMappingHints
type ConverterMappingHints = class
Public Class ConverterMappingHints
Inheritance
ConverterMappingHints
Derived

Remarks

See EF Core value converters for more information and examples.

Constructors

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

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

Properties

IsUnicode

Whether or not the mapped data type should support Unicode.

Precision

The suggested precision of the mapped data type.

Scale

The suggested scale of the mapped data type.

Size

The suggested size of the mapped data type.

ValueGeneratorFactory
Obsolete.

An optional factory for creating a specific ValueGenerator to use for model values when this converter is being used.

Methods

OverrideWith(ConverterMappingHints)

Adds hints from the given object to this one. Hints that are already specified are overridden.

With(ConverterMappingHints)

Adds hints from the given object to this one. Hints that are already specified are not overridden.

Applies to