I am using Entity Framework Code First method to create my database table. The following code creates a DATETIME column in the database, but I want to create a
DATETIME
the Best Way it using The
[DataType(DataType.Date)] public DateTime ReportDate { get; set; }
but you must using the EntityFramework v 6.1.1