Closed hmobius closed 11 years ago
If you call either of
var db = Database.Open().Albums.Select(db.Albums.First()); var db = Database.Open().Albums.Select(db.Albums.FirstOrDefault());
You get a NullReferenceException thrown back. If you call
var db = Database.Open().Albums.All().Select(db.Albums.First()); var db = Database.Open().Albums.All().Select(db.Albums.FirstOrDefault());
You get an InvalidOperationException thrown back. Suggest that both calls should throw an InvalidOperationException.
Applies also to Single() and SingleOrDefault()
Fixed.
If you call either of
You get a NullReferenceException thrown back. If you call
You get an InvalidOperationException thrown back. Suggest that both calls should throw an InvalidOperationException.