//db.Products = dbSet //db = context public GenericRepository() { db = new BilgeAdamContext(); this.dbSet = db.Set <TEntity>(); }