Closed hmobius closed 11 years ago
If I call ThenBy(xyz) where xyz is not a valid single columnReference, as below, a NullReferenceException is thrown.
db.Albums.All().OrderBy(db.Albums.AlbumId).ThenBy(); db.Albums.All().OrderBy(db.Albums.AlbumId).ThenBy(1); db.Albums.All().OrderBy(db.Albums.AlbumId).ThenBy(db.Albums.GenreId == 1); db.Albums.All().OrderBy(db.Albums.AlbumId).ThenBy(db.Albums.ArtistId, db.Albums.Title);
I would expect it to throw an ArgumentException instead.
If I call ThenBy(xyz) where xyz is not a valid single columnReference, as below, a NullReferenceException is thrown.
I would expect it to throw an ArgumentException instead.