Example #1
0
 public TEntity Get(object 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));
 }