Closed hmobius closed 11 years ago
If I call ThenByColumnName(xyz) where xyz is anything, xyz is ignored and the query sorted.
db.Albums.All().OrderBy(db.Albums.AlbumId).ThenByGenreId(1); db.Albums.All().OrderBy(db.Albums.AlbumId).ThenByGenreId(db.Albums.Title)
In the two calls above, results are sorted on AlbumId and GenreId. I would expect an ArgumentException to be thrown instead.
Fixed
If I call ThenByColumnName(xyz) where xyz is anything, xyz is ignored and the query sorted.
In the two calls above, results are sorted on AlbumId and GenreId. I would expect an ArgumentException to be thrown instead.