Model in MVC

Model
 
Model play a big roll in MVC Application as model handle the logical part of data accessing. Basically  we use model in three ways in our MVC programming these are given below :
 
Data Model - We use data model by using Entity model. Entity model is very good framework for fetching data from any data because through the entity frame work we map the data into form of class
 
Service Model - For accessing data as a service we use Web Api or WCF
 
View Model - We use view model as a properties in our model.
 
Entity Framework - if you are using Entity Framework then we have three approach by which we data retrieve these are given below:
 
1. Code First Approach 
 
2. Model First Approach 
 
3. Data First Approach

We will discuss in brief in our next Blog .
Ebook Download
View all
Learn
View all