Example #1
0
 public ReviewsController(Roz.Data.IRepository<int, Review> repository, IRepository<int, Book> repositoryBooks)
 {
     _repository = repository;
     _repositoryBooks = repositoryBooks;
     //db = dataEngine.Current.CurrentDbContextScope.DataContexts.Get<BooksDbContext>();
 }
Example #2
0
        //private IDataContextScope _scope;

        public BooksController(Roz.Data.IRepository<int, Book> repository)
        {
            _repository = repository;
            //_scope = EFDataEngine.Current.DbContextScopeFactory.Create();
            //db = dataEngine.Current.CurrentDbContextScope.DataContexts.Get<BooksDbContext>();
        }