Table of Contents

Class DateTimeToBinaryConverter

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

Converts DateTime using ToBinary(). This will preserve the DateTimeKind.

public class DateTimeToBinaryConverter : ValueConverter<DateTime, long>
Inheritance
DateTimeToBinaryConverter
Inherited Members

Remarks

See EF Core value converters for more information and examples.

Constructors

DateTimeToBinaryConverter()

Creates a new instance of this converter.

public DateTimeToBinaryConverter()

Remarks

See EF Core value converters for more information and examples.

DateTimeToBinaryConverter(ConverterMappingHints?)

Creates a new instance of this converter.

public DateTimeToBinaryConverter(ConverterMappingHints? mappingHints)

Parameters

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.

Properties

DefaultInfo

A ValueConverterInfo for the default use of this converter.

public static ValueConverterInfo DefaultInfo { get; }

Property Value

ValueConverterInfo