public TEntity GetByID(Int64 id) { // Here we are working with a DbContext, not PlutoContext. So we don't have DbSets // such as Courses or Authors, and we need to use the generic Set() method to access them. return(Context.Set <TEntity>().Find(id)); }
public Repositories(sbv_uuwebstoreEntities context) { this.Context = context; this.DbSet = context.Set <TEntity>(); }