Exceptions when rolling back a transaction - connection already closed?
Using Entity Framework 6.0.0, I'm seeing an exception when closing a transaction. We'd been having problems with concurrent changes to the table, so I wrapped it in a transaction, and now I'm getting exceptions on rollback. The code: public LockInfo getSharedLock(string jobid) { using (var myDbContext = new MyDbContext()) { using (var transaction = myDbContext.Database.BeginTransaction()) { try { this.logger.log("Attempting to get shared lock for {0}", jobid); var mylocks = myDbContext.joblocks.Where(j => j.customerid == this.userContext.customerid) .Where(j => j.jobid == jobid) .Where(j => j