public GenericRepository() { this.context = new AppdbEntities(); this.dbSet = context.Set <TEntity>(); }
public StudentsRepository(AppdbEntities db) : base(db) { //this.context = db; }
public GenericRepository(AppdbEntities context) { this.context = context; this.dbSet = context.Set <TEntity>(); }