Ejemplo n.º 1
0
 public static void stopTransaction()
 {
     Transaction.Commit();
     db          = null;
     Transaction = null;
 }
Ejemplo n.º 2
0
 private TransactionSingletone()
 {
     db = new RegistroCivilEntities();
     db.Configuration.LazyLoadingEnabled = false;
     Transaction = db.Database.BeginTransaction(System.Data.IsolationLevel.RepeatableRead);
 }