When we create an ASP.NET MVC 5 application, the Visual Studio by default creates the following folders and files for our application.
App_Data
App_Data folder can contain application data files like LocalDB, .mdf files, xml files and other data related files.
App_Start:
The App_Start folder of an MVC application is used to contain the class files which are needed to be executed at the time of application starts. The classes like BundleConfig, FilterConfig, RouteConfig, IdentityConfig, etc are stored within this folder. So in the simple word we can say that configuration related class files are stored here. We will discuss the use of each of these class files in detail in our upcoming articles.
Content
Content folder contain static files like css, images and icons and MVC 5 application includes bootstrap.min.css, bootstrap.css and site.css by default.
Controller
Controller folder contain class file. It handles user request and response. You will learn about controller in comming article.
Fonts
Fonts folder contains some font files as show in below:
Model
Model folder contain some model class files. It is use to store the domain data or business logic to manipulate data.
Scripts
Script folder contain javascript files:
Views
The Views Folder of an MVC application is used to contains the “.cshtml” files for the application. In MVC, the .cshtml file is a file where we need to write the HTML code along with the C# code.
Views folder include separate folder for each and every controller.
Global.asax
Global.asax allows us to write code that we want to run at application level such as Application_BeginRequest, application_error, application_start, session_start, session_end etc.
Packages.config
The Packages.config file in MVC application is managed by the NuGet which will keep track of what packages and versions have installed within your application.
Web.config
Web.config file have application level configurations.
In the next article we will learn about Controller.
Comments
Post a Comment