public IDbTransaction BeginTransaction() { if (_context.ObjContext().Connection.State != ConnectionState.Open) { _context.ObjContext().Connection.Open(); } return(_context.ObjContext().Connection.BeginTransaction()); }
public EFWorkspace(CommonDbContext context) { _context = context; if (_context.Database.Connection.ConnectionString.EndsWith(".sdf")) { _context.ObjContext().Connection.Open(); } }
public IDbTransaction BeginTransaction() { return(_context.ObjContext().Connection.BeginTransaction()); }