01 2019 档案
Entity Framework Core: A second operation started on this context before a previous operation completed
摘要:我这边报错是因为函数声明的是async void 而实现中有多个task任务,导致的线程不安全
阅读全文
abp Cannot access a disposed object. A common cause of this error is disposing
摘要:框架:abp 异常信息: An unhandled exception was thrown by the application.System.ObjectDisposedException: Cannot access a disposed object. A common cause of t
阅读全文
abp xunit Can not register IHostingEnvironment. It should be a non-abstract class. If not, it should be registered before.”
摘要:在测试项目的ServiceCollectionRegistrar类提前注册。
阅读全文
hangfire enqueued but not processing(hangfire 定时任务入队列但不执行)
摘要:去掉时区和名字之后就好了,暂不清楚原因,应该是我对这个方法的后面这两个参数理解的有问题。
阅读全文
EF 更新实体 The instance of entity type 'BabyEvent' cannot be tracked because another instance
摘要:加上AsNoTracking。 人不能两次踏入同一条河。 我 就踏入了。o(╥﹏╥)o
阅读全文
datatable to entiy list 不支持可空类型和枚举类型
摘要:还没有找到解决方法,暂存,希望有知道能告诉我。谢谢。
阅读全文
webapi 设置不显示接口到swaggerUI
摘要:请添加如下属性: [ApiExplorerSettings(IgnoreApi = true)]
阅读全文
abp EF 添加实体后返回的实体的主键为负值的问题
摘要:请使用InsertAndGetIdAsync
阅读全文