subsonic / SubSonic-3.0

SubSonic 3.0 for the .NET 3.5 Framework
http://subsonic.github.io/
557 stars 209 forks source link

Selecting from Repository.All<T>() throws System.ArgumentException #263

Closed kayone closed 9 years ago

kayone commented 13 years ago

This test exercises this issue

   GivenMovies();
   var item = _repo.All<Movie>().Select(c => new { title = c.Director.Name });
   item.ToList();

but calling to list that would convert the IQueryable to IList will resolve the issue.

   GivenMovies();
   var list = _repo.All<Movie>().ToList();
   list.Select(c => new { title = c.Director.Name });
   item.ToList();