// private readonly ILogger _logger; // public GenericRepository(FoodTownDbContext context, ILogger<T> logger) // { // this._context = context ?? throw new ArgumentNullException(nameof(context)); // this._logger = logger ?? throw new ArgumentNullException(nameof(_logger)); // this._table = _context.Set<T>(); // } public GenericRepository(FoodTownDbContext context) { this._context = context ?? throw new ArgumentNullException(nameof(context)); this._table = _context.Set <T>(); }
public BrandRepository(FoodTownDbContext context) : base(context) { }
public CategoryRepository(FoodTownDbContext context) : base(context) { }
public ItemRepository(FoodTownDbContext context) : base(context) { }