HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
In order to learn ASP.NET MVC, we will build an Internet application.
Part 7: Adding data model.
MVC model contains in addition to the pure view and controller logic all other application logic (business logic, validation logic, data access logic).
By MVC, the model can control and manipulate the application data.
Models folder contains the class represents the application of the model.
Visual Web Developer automatically creates a AccountModels.cs file that contains the model for application security.
AccountModels contains LogOnModel, ChangePasswordModel and RegisterModel.
Database model needed for this tutorial can be obtained by following a few simple steps to create:
Comment:
We deliberately model named "MovieDB". In the last chapter, you've seen for the database table "MovieDBs" (ending in s). It looks strange, but this naming convention ensures model connected to the database table, so you have to use.
Need for this tutorial database controller through the following a few simple steps to create:
Visual Web Developer creates the following files:
In the Movies folder, automatically creates the following files:
congratulations. You have added your first MVC data model to the application.
Now you can click on the "Movies" tab pages.