开发者

Does Castle ActiveRecord's ActiveRecordMediator<> support LINQ?

开发者 https://www.devze.com 2022-12-26 20:24 出处:网络
Does Castle ActiveRecord\'s ActiveRecordMediator<&开发者_开发百科gt; class support LINQ queries? I couldn\'t find any method that returns an IQueryable<>. My domain objects can\'t inherit fro

Does Castle ActiveRecord's ActiveRecordMediator<&开发者_开发百科gt; 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.


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

from w in ActiveRecordLinq.AsQueryable<MyEntity>() select w;
0

精彩评论

暂无评论...
验证码 换一张
取 消