Programming Tips 💡
51.7K subscribers
67 photos
10 videos
30 files
354 links
Programming & AI:
Tips 💡
Articles 📕
Resources 👾
Design Patterns 💎
Software Principles

🇳🇱 Contact: @MoienTajik

🎯 Buy ads: https://telega.io/c/ProgrammingTip
Download Telegram
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