ValueConverterInfo Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new ValueConverterInfo instance.
public ValueConverterInfo (Type modelClrType, Type providerClrType, Func<Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverterInfo,Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverter> factory, Microsoft.EntityFrameworkCore.Storage.ValueConversion.ConverterMappingHints mappingHints = default);
public ValueConverterInfo (Type modelClrType, Type providerClrType, Func<Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverterInfo,Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverter> factory, Microsoft.EntityFrameworkCore.Storage.ValueConversion.ConverterMappingHints? mappingHints = default);
new Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverterInfo : Type * Type * Func<Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverterInfo, Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverter> * Microsoft.EntityFrameworkCore.Storage.ValueConversion.ConverterMappingHints -> Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverterInfo
Public Sub New (modelClrType As Type, providerClrType As Type, factory As Func(Of ValueConverterInfo, ValueConverter), Optional mappingHints As ConverterMappingHints = Nothing)
Parameters
- modelClrType
- Type
The CLR type used in the EF model.
- providerClrType
- Type
The CLR type used when reading and writing from the database provider.
- factory
- Func<ValueConverterInfo,ValueConverter>
A factory to create the converter, if needed.
- mappingHints
- ConverterMappingHints
Hints that can be used by the ITypeMappingSource to create data types with appropriate facets for the converted data.
Remarks
See EF Core value converters for more information and examples.
Applies to
Entity Framework