Exemplo n.º 1
0
 public UnitOfWork(IObjectContextAdapter dataContext, IProductRepository productRepository, IUserRepository userRepository)
 {
     _productRepository = productRepository;
     _userRepository    = userRepository;
     DataContext        = (ministoreDb)dataContext;
 }
Exemplo n.º 2
0
 public BaseRepository(IObjectContextAdapter dbContext)
 {
     DataContext = (ministoreDb)dbContext;
     DbSet       = DataContext.Set <T>();
 }