01 2019 档案
Entity Framework Core: A second operation started on this context before a previous operation completed
摘要:我这边报错是因为函数声明的是async void 而实现中有多个task任务,导致的线程不安全 阅读全文
posted @ 2019-01-25 22:52 芝麻的西瓜 阅读(2356) 评论(0) 推荐(0)
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 阅读全文
posted @ 2019-01-25 22:44 芝麻的西瓜 阅读(5907) 评论(2) 推荐(1)
abp xunit Can not register IHostingEnvironment. It should be a non-abstract class. If not, it should be registered before.”
摘要:在测试项目的ServiceCollectionRegistrar类提前注册。 阅读全文
posted @ 2019-01-22 20:22 芝麻的西瓜 阅读(217) 评论(0) 推荐(0)
hangfire enqueued but not processing(hangfire 定时任务入队列但不执行)
摘要:去掉时区和名字之后就好了,暂不清楚原因,应该是我对这个方法的后面这两个参数理解的有问题。 阅读全文
posted @ 2019-01-22 00:32 芝麻的西瓜 阅读(2058) 评论(2) 推荐(0)
EF 更新实体 The instance of entity type 'BabyEvent' cannot be tracked because another instance
摘要:加上AsNoTracking。 人不能两次踏入同一条河。 我 就踏入了。o(╥﹏╥)o 阅读全文
posted @ 2019-01-19 22:52 芝麻的西瓜 阅读(6037) 评论(0) 推荐(0)
datatable to entiy list 不支持可空类型和枚举类型
摘要:还没有找到解决方法,暂存,希望有知道能告诉我。谢谢。 阅读全文
posted @ 2019-01-19 00:02 芝麻的西瓜 阅读(173) 评论(0) 推荐(0)
webapi 设置不显示接口到swaggerUI
摘要:请添加如下属性: [ApiExplorerSettings(IgnoreApi = true)] 阅读全文
posted @ 2019-01-12 16:34 芝麻的西瓜 阅读(2585) 评论(0) 推荐(0)
abp EF 添加实体后返回的实体的主键为负值的问题
摘要:请使用InsertAndGetIdAsync 阅读全文
posted @ 2019-01-08 18:18 芝麻的西瓜 阅读(783) 评论(0) 推荐(1)