modeling - how do you organize your model code in asp.net-mvc? -
It seems that in my model folder, all my classes fit into one of 3 buckets:
- Pure POCO data objects / business objects
- Repository implementation code to query databases and external services
- Helper code.
Is it normal and how to organize it is a best practice. Do I need a subfolder for 1, 2 + 3? Any recommendations?
If you see that trying to provide a best practice framework, you will see that Poko / Institutions, repositories and support codes are not isolated, they are also present in different assemblies. This is because it is impossible to physically leak from one container to the other. This structure grows by the article which is also good to read.
Comments
Post a Comment