Depending on your version of AR,
Castle.ActiveRecord.Framework.ActiveRecordLinq.AsQueryable<T> will do the
job for you (or ActiveRecordLinqBase).

There are some issues with it still, especially when used in VB (operator
support is a bit lacking and you're forced to use .Equals). I use it when I
can for simple queries, for more complex ones with multiple criteria I fall
back on Nhibernate.Criterion.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Mike Christensen
Sent: 26 January 2012 07:54 PM
To: castle-project-users
Subject: LINQ with ActiveRecord?

Is there a way to query the database through ActiveRecord using a LINQ query
(and still get ActiveRecord models), or is HQL the preferred way of doing
this?  Thanks!

Mike

--
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to