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