/// <summary>
 /// Public Constructor,initializes privately declared local variables.
 /// </summary>
 /// <param name="context"></param>
 public GenericRepository(DBModels context)
 {
     this.Context = context;
     this.DbSet   = context.Set <TEntity>();
 }