How to use Date Only as data type in Entity Framework

c# entity-framework orm sql-server type-conversion

Accepted Answer

ZZZ_tmp
20
3/21/2015 1:40:04 PM

Popular Answer

Try to utilizeColumnAttribute from System.ComponentModel.DataAnnotations in EntityFramework.dll (defined)

[Column(TypeName="Date")]
public DateTime ReportDate { get; set; }


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow