Geeks With Blogs
Liam McLennan hackingon.net

The above error occurred when I executed a linq query using the following expression:

(s) => s.Book.Slug.Equals(bookslug) && ids.Contains(s.Id);

ids in this case is of type IEnumerable<Guid>. As indicated by the error message the fix is to change ids to ICollection<Guid>, then the query executes successfully.

Posted on Monday, May 17, 2010 8:20 PM | Back to top

Copyright © Liam McLennan | Powered by: GeeksWithBlogs.net