Synopsis Model
Domain Model- Is also called Entity Model or Data model. Now this domain model represents data entity that are mapped to business domain which later consumes and act as a container for presentation and vice versa.
View Model- The data are processed or referenced in presentation layer or view finds its place in View Model as a properties. Now these data can be string, data , int etc.
Input Model- This is rather confusing and we sometimes tends to term it as View Model. But these construct solely based on input data from view by end users to controller and eventually to backend. This is form post or Get or Update/Delete operations.
The below blog post entails the whole story of domain and give examples around to better understand them.
Look also for IModelBinder,Custom DefaultModelBinder and DefaultModelBinder.
https://www.simple-talk.com/dotnet/asp.net/the-three-models-of-asp.net-mvc-apps/
Domain Model- Is also called Entity Model or Data model. Now this domain model represents data entity that are mapped to business domain which later consumes and act as a container for presentation and vice versa.
View Model- The data are processed or referenced in presentation layer or view finds its place in View Model as a properties. Now these data can be string, data , int etc.
Input Model- This is rather confusing and we sometimes tends to term it as View Model. But these construct solely based on input data from view by end users to controller and eventually to backend. This is form post or Get or Update/Delete operations.
The below blog post entails the whole story of domain and give examples around to better understand them.
Look also for IModelBinder,Custom DefaultModelBinder and DefaultModelBinder.
https://www.simple-talk.com/dotnet/asp.net/the-three-models-of-asp.net-mvc-apps/
No comments :
Post a Comment