Exemplo n.º 1
0
 public void Commit(bool resetAfterCommit)
 {
     DataContextFactory.GetDataContext().SaveChanges();
     if (resetAfterCommit)
     {
         DataContextFactory.Clear();
     }
 }
Exemplo n.º 2
0
        public EFUnitOfWork(bool forceNewContext)
        {
            //TODO : List all repositories
            activityRepository = new ActivityRepository();

            if (forceNewContext)
            {
                DataContextFactory.Clear();
            }
        }
Exemplo n.º 3
0
 public void Undo()
 {
     DataContextFactory.Clear();
 }