0 like 0 dislike
35 views
in Computer Science by (1.0m points)
Define the use of queries object.

1 Answer

0 like 0 dislike
by (1.0m points)
This is a follow up post to my YouTube video Repository Pattern, Done Right. If you haven’t seen this video, it’s best to watch it first, before continuing reading.

There have been many interesting questions in the discussion area and I’ve replied to most (if not all) of them. One that has come up a few times is:

Should we favour command/query objects over repositories?

A few have referred me to Jimmy Bogard’s post. So, in this post, I’ll be comparing these two approaches and pros / cons of each.

Before I get started, I need to emphasise: neither the repository pattern, nor command / query objects, are silver-bullets. Just because these architectural patterns exist, doesn’t mean you should use them in every single application. If your queries are simple enough (one or two lines), don’t worry about creating an abstraction over them. There is nothing wrong with writing them in your controllers (assuming a web application).

If you do, however, have fat queries that have bloated your controllers, you might want to consider one of these patterns to achieve “better separation of concerns”
by
Ampicillin Amoxicillin And Ticarcillin For Dogs  <a href=https://buyciallisonline.com/#>generic name for cialis</a> Cheap Secure Doryx Microdox  <a href=https://buyciallisonline.com/#>buying cialis online usa</a> Real Viagra For Sale Online 178

Related questions

0 like 0 dislike
1 answer 86 views
asked Feb 12, 2019 in Computer Science by danish (1.0m points)
0 like 0 dislike
0 answers 23 views
asked Feb 12, 2019 in Computer Science by danish (1.0m points)
0 like 0 dislike
1 answer 23 views
asked Feb 12, 2019 in Computer Science by danish (1.0m points)
0 like 0 dislike
1 answer 46 views
asked Feb 9, 2019 in Computer Science by danish (1.0m points)
0 like 0 dislike
1 answer 32 views
asked Feb 13, 2019 in Computer Science by danish (1.0m points)
0 like 0 dislike
1 answer 32 views
asked Feb 11, 2019 in Computer Science by danish (1.0m points)
0 like 0 dislike
1 answer 34 views
asked Feb 13, 2019 in Computer Science by danish (1.0m points)
0 like 0 dislike
1 answer 93 views
asked Feb 13, 2019 in Computer Science by danish (1.0m points)
0 like 0 dislike
1 answer 37 views
asked Apr 2, 2019 in Computer Science by danish (1.0m points)
0 like 0 dislike
1 answer 46 views
asked Feb 13, 2019 in Computer Science by danish (1.0m points)
Welcome to Free Homework Help, where you can ask questions and receive answers from other members of the community. Anybody can ask a question. Anybody can answer. The best answers are voted up and rise to the top. Join them; it only takes a minute: School, College, University, Academy Free Homework Help

19.4k questions

18.3k answers

8.7k comments

3.3k users

Free Hit Counters
...