Query object implementation examples [closed]

非 Y 不嫁゛ 提交于 2019-11-30 21:43:09

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.

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!