随笔分类 - ABP
ABP
摘要:InvalidCastException:'timestamp with time zone'. See the Npgsql.EnableLegacyTimestampBehavior AppContext switch to enable legacy behavior.
搜关键词 `EnableLegacyTimestampBehavior`,找到官网的解释:https://www.npgsql.org/doc/types/datetime.html#timestamps-and-timezones
在 `Main` 入口加上
```C#
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true);
AppContext.SetSwitch("Npgsql.DisableDateTimeInfinityConversions", true);
```
重新执行 `dotnet run` 命令,问题解决。
阅读全文
摘要:*********完美和谐 现在使用这个ASP.NET Zero Power Tools小工具,帮我完成创建Entity类,Dto类,AppService类,View视图等DDD相关工作以及Entity Framework Migration迁移工作。 ASP.NET Zero Power Tool
阅读全文
摘要:注意,阅读本文,需要先阅读以下两篇文章,并且对依赖注入有一定的基础。 模块系统:http://www.cnblogs.com/mienreal/p/4537522.html 依赖注入:http://www.cnblogs.com/mienreal/p/4550500.html 正文: 我最近在设计一
阅读全文