Castle ActiveRecord 使用 linq
using Castle.ActiveRecord.Linq;
1.Make your entities inherit from ActiveRecordLinqBase<T>, then to query: var blogs = (from b in Blog.Queryable select b).ToList();
2.Use ActiveRecordLinq.AsQueryable<T>, e.g.: var blogs = (from b in ActiveRecordLinq.AsQueryable<Blog>() select b).ToList();
浙公网安备 33010602011771号