home / software / tips and tricks / What is the difference between 'Entity' and 'ViewModel'?

What is the difference between 'Entity' and 'ViewModel'?

Updated:  10/16/2017 17:10 PM
Author:  Shiju Mathews

Status:    Resolved.


An 'Entity' is the representation of the Database table schema.

ViewModel is an object used to carry data from a controller to a model. ViewModel uses multiple entities to pull the data, that the view needs. When the data is returning to the database the ViewModel uses multiple entities to map the data from the ViewModel.

The 'Entity' is focused on the database and the ViewModel is concentrated on the view. .
Tags: What is the difference between 'Entity' and 'ViewModel'?
Updated on: November 2024