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

            if (forceNewContext)
            {
                DataContextFactory.Clear();
            }
        }
示例#3
0
 public void Undo()
 {
     DataContextFactory.Clear();
 }