markrendle / Simple.Data

A light-weight, dynamic data access component for C# 4.0
MIT License
1.33k stars 303 forks source link

Calling Length() as a Select function should throw InvalidOperationException #289

Closed hmobius closed 11 years ago

hmobius commented 11 years ago

If you call

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

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