Skip to content


Calling First() or FirstOrDefault() as a Select function should throw InvalidOperationException #291

hmobius opened this Issue · 1 comment

1 participant


If you call

var db = Database.Open().Albums.First();


var db = Database.Open().Albums.FirstOrDefault();

you'll get a RuntimeBinderException thrown back. Suggest that it should throw an InvalidOperationException instead.


Applies also to Single() and SingleOrDefault()

@markrendle markrendle added a commit that closed this issue
@markrendle Fixes #291 7203b26
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.