Skip to content

Loading…

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

Closed
hmobius opened this Issue · 1 comment

1 participant

@hmobius

If you call

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

or

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

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

@hmobius

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.