public Repository(AgeRangerDbContext dbContext) { //initialize db context Context = dbContext; // Configures current entity DB Set which is being manipulated DbSet = dbContext.Set <Entity>(); }
public UnitOfWork(AgeRangerDbContext context) { this._context = context; }