Table of Contents

Class CastingConverter<TModel, TProvider>

Namespace
Microsoft.EntityFrameworkCore.Storage.ValueConversion
Assembly
Microsoft.EntityFrameworkCore.dll

Converts TModel to and from TProvider using simple casts from one type to the other.

public class CastingConverter<TModel, TProvider> : ValueConverter<TModel, TProvider>

Type Parameters

TModel
TProvider
Inheritance
ValueConverter<TModel, TProvider>
CastingConverter<TModel, TProvider>
Inherited Members

Remarks

See EF Core value converters for more information and examples.

Constructors

CastingConverter()

Creates a new instance of this converter.

public CastingConverter()

Remarks

See EF Core value converters for more information and examples.

CastingConverter(ConverterMappingHints?)

Creates a new instance of this converter.

public CastingConverter(ConverterMappingHints? mappingHints)

Parameters

mappingHints ConverterMappingHints

Remarks

See EF Core value converters for more information and examples.

Properties

DefaultInfo

A ValueConverterInfo for the default use of this converter.

public static ValueConverterInfo DefaultInfo { get; }

Property Value

ValueConverterInfo