📅  最后修改于: 2022-03-11 14:48:53.156000             🧑  作者: Mango
[Column(TypeName ="datetime2")]
public DateTime TestDate { get; set; }
[Column(TypeName ="datetime")] // Not needed by default
public DateTime AnotherTestDate { get; set; }