Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How-To Deal with Multi-Criteria Queries in 3-Tier Architecture

Assuming a basic 3-Tier application (UI-Service-Data Access) with a total abstraction of Data Access layer (SQL, Xml ...)

The UI applications are composed with Datagrids with multi criteria filters, find etc..

So how-to deal with mutli-criteria queries in this architecture without having to create multiple service methods with all possible criteria as parameters...

Note that UI tier doesn't know how the DAL works.

like image 389
Yoann. B Avatar asked Nov 14 '22 14:11

Yoann. B


1 Answers

That is what a DTO is for.

like image 158
blu Avatar answered Dec 18 '22 18:12

blu