ABP 框架报错“Cannot access a disposed object. A common cause of this error is disposing a context that was resolved from dependency injection and then
“Cannot access a disposed object. A common cause of this error is disposing a context that was resolved from dependency injection and then later trying to use the same context instance elsewhere in your application. This may occur if you are calling Dispose() on the context, or wrapping the context in a using statement. If you are using dependency injection, you should let the dependency injection container take care of disposing context instances.
ObjectDisposed_ObjectName_Name
经过搜索,也不知道为啥,总之方法前面必须加上 [UnitOfWork]
感谢大佬,网址:https://blog.csdn.net/liuyonghong159632/article/details/108423927
posted on 2021-07-16 12:01 topguntopgun 阅读(397) 评论(0) 编辑 收藏 举报