Share via


ValueConverterInfo Struct

Definition

Contains information on an available ValueConverter including a factory to create an instance.

public readonly struct ValueConverterInfo
[System.Runtime.CompilerServices.IsReadOnly]
public readonly struct ValueConverterInfo
type ValueConverterInfo = struct
[<System.Runtime.CompilerServices.IsReadOnly>]
type ValueConverterInfo = struct
Public Structure ValueConverterInfo
Inheritance
ValueConverterInfo
Attributes

Remarks

See EF Core value converters for more information and examples.

Constructors

ValueConverterInfo(Type, Type, Func<ValueConverterInfo,ValueConverter>, ConverterMappingHints)

Creates a new ValueConverterInfo instance.

Properties

MappingHints

Hints that can be used by the ITypeMappingSource to create data types with appropriate facets for the converted data.

ModelClrType

The CLR type used in the EF model.

ProviderClrType

The CLR type used when reading and writing from the database provider.

Methods

Create()

Creates an instance of the ValueConverter.

Applies to