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