RelationalConverterMappingHints Class

Definition

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

C#
public class RelationalConverterMappingHints : Microsoft.EntityFrameworkCore.Storage.ValueConversion.ConverterMappingHints
Inheritance
RelationalConverterMappingHints

Remarks

See EF Core value converters for more information and examples.

Constructors

Properties

DbType

The suggested DbType

IsFixedLength

Whether or not the mapped data type is fixed length.

IsUnicode

Whether or not the mapped data type should support Unicode.

(Inherited from ConverterMappingHints)
Precision

The suggested precision of the mapped data type.

(Inherited from ConverterMappingHints)
Scale

The suggested scale of the mapped data type.

(Inherited from ConverterMappingHints)
Size

The suggested size of the mapped data type.

(Inherited from ConverterMappingHints)
ValueGeneratorFactory
Obsolete.

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

(Inherited from ConverterMappingHints)

Methods

OverrideWith(ConverterMappingHints)

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

OverrideWith(ConverterMappingHints)

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

(Inherited from ConverterMappingHints)
With(ConverterMappingHints)

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

Applies to

Proizvod Verzije
Entity Framework Core 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0