Why is there no model in ASP.NET MVC?

After reading Steven Sanderson's Pro ASP.NET MVC book, I’m convinced of the benefits of using ASP.NET MVC over web forms.

Since ASP.NET MVC is clearly inspired by Ruby on Rails and the benefits of the “Configuration Agreement”, it seems to me that M is completely absent in MVC!

In my opinion, the ease of use of Rails is equally dependent on the use of models. Especially when it comes to validation, as this clearly applies to the model, not the presentation level!

It's so easy to write in Rails: validates_presence_of: author or even better validates_uniqueness_of: title

So why is there no M in ASP.NET (M) VC?

+3
source share
4 answers

: " ASP.NET MVC ActiveRecord?"

MVC - ORM, Microsoft , WebForms .NET. LINQ to SQL, Entity Framework "" .

-, ASP.NET MVC 2 HTML- MVC, .

+5

, ASP.NET MVC View Controller - , , - View - ASP.NET. , , , , , .

, , , .

, , , , - MS , , , , , /, .

+1

MVC ​​, . MVC VC , , , , M.

0
source

I would describe ASP.NET MVC as a toolkit that will help you implement the MVC pattern; this is not a complete implementation of the pattern itself.

0
source

Source: https://habr.com/ru/post/1722689/


All Articles