Table of Contents

Class DateTimeKindConvention

Namespace
MongoDB.EntityFrameworkCore.Metadata.Conventions
Assembly
MongoDB.EntityFrameworkCore.dll

A convention that set DateTimeKind for DateTime properties.

public class DateTimeKindConvention : IPropertyAddedConvention, IConvention
Inheritance
DateTimeKindConvention
Implements
Inherited Members

Constructors

DateTimeKindConvention(DateTimeKind)

Creates a DateTimeKindConvention.

Properties

DateTimeKind

DateTimeKind to use.

Methods

ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

For every property of DateTime type that is added to the model set the configured DateTimeKind.