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