public NorthwindRepository(NorthwindDb db)
 {
     Db    = db;
     DbSet = db.Set <TEntity>();
 }