public UnitOfWork(DrinkFinderDomainContext context) { _context = context ?? throw new ArgumentNullException(nameof(context)); _context.ChangeTracker.DeleteOrphansTiming = CascadeTiming.OnSaveChanges; }
public Repository(DrinkFinderDomainContext context) { _context = context ?? throw new ArgumentNullException(nameof(context)); _set = _context.Set <TEntity>(); }