views:

98

answers:

1

Does Castle ActiveRecord's ActiveRecordMediator<> class support LINQ queries? I couldn't find any method that returns an IQueryable<>. My domain objects can't inherit from ActiveRecordLinqBase<> due to their design.

+1  A: 

There's a separate static class for that - ActiveRecordLinq. Example:

from w in ActiveRecordLinq.AsQueryable<MyEntity>() select w;
Mauricio Scheffer
Thanks! Can't believe I missed that.
Daniel T.