Closed hmobius closed 11 years ago
If I call ThenBy() over a base command without a call to OrderBy(), I'd expect an InvalidOperationException to be thrown. This is true if I call.
db.Albums.All().ThenBy(); db.Albums.All().ThenByArtistId();
But if I call the named parameter version I get a NullReferenceException.
db.Albums.All().ThenBy(db.Albums.ArtistId);
Am guessing it should also throw an InvalidOperationException.
If I call ThenBy() over a base command without a call to OrderBy(), I'd expect an InvalidOperationException to be thrown. This is true if I call.
But if I call the named parameter version I get a NullReferenceException.
Am guessing it should also throw an InvalidOperationException.