示例#1
0
 public Repository(EstoqueContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
     _dbSet   = _context.Set <T>();
 }
示例#2
0
 public UnitOfWork(EstoqueContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }