Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

OrderBy throws NullReferenceException instead of ArgumentException #270

Closed
hmobius opened this Issue · 0 comments

1 participant

@hmobius

If I call OrderBy(xyz) where xyz is anything other than a column reference, I'd expect an ArgumentException to be thrown. However a NullReferenceException is thrown instead when there is one. For instance

// Throws NullReferenceException
db.Albums.All().OrderBy(1); 
db.Albums.All().OrderBy(db.Albums.GenreId == 1));
@markrendle markrendle closed this issue from a commit
@markrendle Fixes #270 6a58fa5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.