Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Query object implementation examples [closed]

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

I haven't found much with google.

like image 381
user137348 Avatar asked Feb 15 '10 10:02

user137348


2 Answers

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.

like image 107
Anton Gogolev Avatar answered Sep 18 '22 22:09

Anton Gogolev


From Chad Myers:

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

like image 34
Ahmet Recep Navruz Avatar answered Sep 22 '22 22:09

Ahmet Recep Navruz