Answer the question
In order to leave comments, you need to log in
What are non-ORM architectural patterns for ASP.NET MVC?
Hello dear developers!
Tell me, please, what architectural design patterns for web applications (ASP.NET MVC 5), without the participation of ORM, can you pay attention to? Now I'm using a bundle that can be called " Repository + Onion ", and the project structure is as follows :
Answer the question
In order to leave comments, you need to log in
It is difficult to advise you on a pattern, because you basically said what your problem is . It is not clear for which architectural task you are choosing a pattern.
You have indicated that you are already using the Repository. If so, then everything should be fine with abstraction from the data acquisition layer - you can implement the repository the way you need, including SQL queries.
Even if you don't want the whole ORM, you may want to implement some of its functionality yourself for convenience. For example, you probably still want to have an Identity Map so that your objects (which your Repository implemented with manual SQL queries will return) were indeed objects, not records. Or even some Lazy Load.
In general, now there is a feeling that you are not solving a problem, but are trying to collect a record collection of patterns.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question