protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (context != null)
         {
             context.Dispose();
             context = null;
         }
     }
 }
 public Repository()
 {
     context = new TaskManagerEntities();
     dbSet   = context.Set <T>();
 }
 public GenericRepo(TaskManagerEntities context)
 {
     this.context = context;
     this.set     = context.Set <TEntity>();
 }