markrendle / Simple.Data

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

Passing no parameters to Having() should throw an ArgumentException #286

Closed hmobius closed 11 years ago

hmobius commented 11 years ago

If I add a call to Having but pass it no parameters (see below), Simple.Data throws a RuntimeBinderException.

db.Albums.All()
   .Select(db.Albums.Artists.Name, 
           db.Albums.AlbumId.Count().As("NumberOfAlbums"))
   .Having();

It should throw an ArgumentException.

markrendle commented 11 years ago

Fixed