Monday, February 19, 2018

How to organize folders in a typical ASP.Net Core MVC solution?

I've recently started to make my first project and I am following tutorials from the Microsoft GitHub repository but some of the tutorial sample code organizes the folder structure in ways which I would not have thought doing.

For example, I've noticed that this project seems to put many classes into the Models folder even though they are not models. It contains the Context, the real model, and "SeedData" which just seems to be used for Database initialization (migration?) to add hardcoded instances/records to the context and then saves it.

Personally, I would have thought of putting the Context objects somewhere else and maybe random classes in a Classes folder, but I am a beginner and used to other project structures.

How do you organize a web app using this framework? Any tips? Thanks :)

How to organize folders in a typical ASP.Net Core MVC solution? Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team