public UnitOfWork(IDatabaseFactory dbFactory) { this.dbFactory = dbFactory; dataContext = dbFactory.DataContext; }
// ContextPi IDatabaseFactory.DataContext // { // get // { // throw new NotImplementedException(); // } // } public DatabaseFactory() { dataContext = new ContextPi(); }