How we do MVC – View models 👀
The ViewModel is a central aspect of our MVC architecture. 🌞
One of the first dilemmas facing MVC developers is to decide what the “M” in MVC means in ASP.NET MVC. 🤔
In Rails, this is fairly clear, the M is ActiveRecord (by default). 🌍
But in ASP.NET MVC, the “M” is silent❗️
Its out-of-the-box architecture offers no guidelines nor advice on what the M should be. ⚙️
Should it be an entity❓
Data access object❔
DTO❓
Something else❔
https://t.iss.one/pgimg/91
[ Website ] : https://bit.do/mvvm
〰〰〰〰〰〰
#AspMvc #CleanCode #BestPractices
@ProgrammingTip
The ViewModel is a central aspect of our MVC architecture. 🌞
One of the first dilemmas facing MVC developers is to decide what the “M” in MVC means in ASP.NET MVC. 🤔
In Rails, this is fairly clear, the M is ActiveRecord (by default). 🌍
But in ASP.NET MVC, the “M” is silent❗️
Its out-of-the-box architecture offers no guidelines nor advice on what the M should be. ⚙️
Should it be an entity❓
Data access object❔
DTO❓
Something else❔
https://t.iss.one/pgimg/91
[ Website ] : https://bit.do/mvvm
〰〰〰〰〰〰
#AspMvc #CleanCode #BestPractices
@ProgrammingTip
Telegram
Programming Tips Resources