Exemplo n.º 1
0
 public UnitOfWork(MonifierDbContext context)
 {
     _context                = context;
     _queryRepositories      = new Dictionary <Type, object>();
     _namedQueryRepositories = new Dictionary <Type, object>();
     _commandRepositories    = new Dictionary <Type, object>();
 }
Exemplo n.º 2
0
 public CommandRepository(MonifierDbContext context, DbSet <T> dbSet)
 {
     _context = context;
     _dbSet   = dbSet;
 }