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