Closed hmobius closed 11 years ago
If I call OrderBy() directly on a table reference without a base command (All, FindAll etc), I'd expect a NullReferenceException to be thrown because there's no command to qualify. This works if I call any of the following
db.Albums.OrderBy(); db.Albums.OrderBy(db.Albums.ArtistId); db.Albums.OrderBy(db["Albums"]["ArtistId"]);
But if I call
db.Albums.OrderByArtistId();
The albums table is returned ordered by artistId. I'd expect this last call not to run.
Too hard to fix.
If I call OrderBy() directly on a table reference without a base command (All, FindAll etc), I'd expect a NullReferenceException to be thrown because there's no command to qualify. This works if I call any of the following
But if I call
The albums table is returned ordered by artistId. I'd expect this last call not to run.