Beispiel #1
0
 public FoodItemRepository(
     RestyContext context,
     IMapper mapper) : base(context, mapper)
 {
 }
Beispiel #2
0
 protected BaseRepository(RestyContext context, IMapper mapper)
 {
     Mapper   = mapper;
     _context = context;
     _dbSet   = context.Set <TEntity>();
 }
Beispiel #3
0
 public UnitOfWork(RestyContext dbContext)
 {
     _dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext));
 }