public GenericRepositoryEF(IHouseholdManagerDbContext context) { if (context == null) { throw new ArgumentNullException(string.Format(ExceptionConstants.ArgumentCannotBeNull, context)); } this.Context = context; this.DbSet = this.Context.Set <T>(); }
public UnitOfWork(IHouseholdManagerDbContext context) { this.context = context; }