Table of Contents

Class DateTimeToTicksConverter

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

Converts DateTime to and Ticks.

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

Remarks

See EF Core value converters for more information and examples.

Constructors

DateTimeToTicksConverter()

Creates a new instance of this converter.

public DateTimeToTicksConverter()

Remarks

See EF Core value converters for more information and examples.

DateTimeToTicksConverter(ConverterMappingHints?)

Creates a new instance of this converter.

public DateTimeToTicksConverter(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.