This project has moved and is read-only. For the latest updates, please go here.

QueryTranslator for LINQ

Jan 27, 2010 at 4:17 AM

I might be missing something, but the "GetByCriteria" function and associated "Query Model" seems to be very biased towards NHibernate.

How would you write a generic QueryTranslator that would convert the custom abstracted Query Model that's included in the solution into a LINQ IQueryable?

Jan 28, 2010 at 12:30 AM

I think I've figured it out. I'm using the LINQ dynamic query library:

http://weblogs.asp.net/scottgu/archive/2008/01/07/dynamic-linq-part-1-using-the-linq-dynamic-query-library.aspx

Mar 31, 2010 at 10:02 AM
aboreham wrote:

I might be missing something, but the "GetByCriteria" function and associated "Query Model" seems to be very biased towards NHibernate.

How would you write a generic QueryTranslator that would convert the custom abstracted Query Model that's included in the solution into a LINQ IQueryable?

have a look at change sets staring from 65141: I've implemented a "LINQ-enabled" generic implementation of the Repository pattern.