M
M
MrMiller2018-04-17 15:38:46
ASP.NET
MrMiller, 2018-04-17 15:38:46

What is better static methods in the model for working with the database or the repository pattern?

How adequate is it to use static methods in the model, and in general to use the model not only as a reflection of the table?
On the one hand, there is less code and no interface wrappers, on the other hand, there are problems with testing the controller, or am I mistaken?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question