public override void CompleteUow() { //GetAllActiveDbContexts().ForEach(SaveChangesInDbContext); //SaveChanges(); if (Options.IsTransactional == true) { _transactionStrategy.Commit(); } }
/// <summary> /// 提交事务 /// </summary> private void CommitTransaction() { if (Options.IsTransactional == true) { _transactionStrategy.Commit(); } }