开发者

Query object implementation examples [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

开发者_如何学JAVA

Closed 5 years ago.

Improve this question

Can anyone recommend good tutorial, implementation or sample code on Query object pattern usage, in C#(Java...)?

I haven't found much with google.


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.


From Chad Myers:

Part 1: http://www.lostechies.com/blogs/chad_myers/archive/2008/08/01/query-objects-with-the-repository-pattern.aspx


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.


I wrote a nice query object library for NHibernate. Check it out here: https://github.com/shaynevanasperen/NHibernate.Sessions.Operations

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜