Пример #1
0
 public UnitOfWork(IDatabaseFactory dbFactory)
 {
     this.dbFactory = dbFactory;
     dataContext    = dbFactory.DataContext;
 }
Пример #2
0
        // ContextPi IDatabaseFactory.DataContext
        // {
        //    get
        //    {
        //        throw new NotImplementedException();
        //    }
        // }

        public DatabaseFactory()
        {
            dataContext = new ContextPi();
        }