public EfRepository(IBrandviserDbContext context) { Guard.WhenArgument(context, nameof(IBrandviserDbContext)).IsNull().Throw(); this.context = context; this.DbSet = this.context.Set <T>(); }
public BrandviserData(IBrandviserDbContext dbContext) { Guard.WhenArgument(dbContext, nameof(IBrandviserDbContext)).IsNull().Throw(); this.dbContext = dbContext; }