We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
由于 LINQ 几乎无处不在,您确定需要重新实现查询对象吗?
基本上,您可以处理 System.Linq.Expressions< 中的所有类/a> 是查询对象模式的良好实现。
With LINQ being almost everywhere, are you sure you need to reimplement the Query Object?
Basically, you can treat all classes from System.Linq.Expressions to be a good implementation of a Query Object pattern.
来自 Chad Myers:
第 1 部分: http://www.lostechies.com/blogs/chad_myers/archive/2008/08/01/query-objects-with-the-repository-pattern.aspx
From Chad Myers:
Part 1: http://www.lostechies.com/blogs/chad_myers/archive/2008/08/01/query-objects-with-the-repository-pattern.aspx
我建议 Martin Fowler 的查询对象模式 (http://martinfowler.com/eaaCatalog/queryObject.html)。获取他的书“企业应用程序架构模式”,您会在那里找到示例实现。
I suggest Martin Fowler's Query Object Pattern (http://martinfowler.com/eaaCatalog/queryObject.html). Get his book "Patterns of Enterprise Application Architecture", you'll find sample implementation there.
我为 NHibernate 编写了一个很好的查询对象库。在这里查看:https://github.com/shaynevanasperen/NHibernate.Sessions.Operations
I wrote a nice query object library for NHibernate. Check it out here: https://github.com/shaynevanasperen/NHibernate.Sessions.Operations