📜  EF Blazor Web 应用程序中的 DateTime2 错误 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:53.156000             🧑  作者: Mango

代码示例1
[Column(TypeName ="datetime2")]
public DateTime TestDate { get; set; }

[Column(TypeName ="datetime")] // Not needed by default
public DateTime AnotherTestDate { get; set; }