外观
ABP 异常问题记录
System.ObjectDisposedException
System.ObjectDisposedException: Cannot access a disposed context instance. A common cause of this error is disposing a context instance 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 instance, or wrapping it in a using statement. If you are using dependency injection, you should let the dependency injection container take care of disposing context instances.
# 原因 释放了连接的上下文对象,上下文对象最好不要加using,除非你有特别的用处
var getDbContext = await GetDbContextAsync();事务已有连接
using (var transaction = getDbContext.Database.CurrentTransaction ?? getDbContext.Database.BeginTransaction())