ViewModels in ASP.NET MVC applications - This is how it works

preview_player
Показать описание
🔥 WANT to know how to work with View Models in ASP.NET Core MVC applications? THIS IS THE VIDEO!

📚 Or do you like to learn through BOOKS more? Our TINY C# PROJECTS BOOK!

We'll make sure to turn you into a true developer in no time!

TIMESTAMPS
00:00 Intro
00:22 What is a View model
00:58 An MVC example
02:27 This one is for you!
03:00 Create a View Model in ASP
06:34 See our result
06:57 Thanks for watching!

ViewModels in ASP.NET MVC applications - This is how it works

So, what is C#?
C# (pronounced "See Sharp") is a modern, object-oriented, and type-safe programming language. C# enables developers to build many types of secure and robust applications that run in .NET. C# has its roots in the C family of languages and will be immediately familiar to C, C++, Java, and JavaScript programmers. This tour provides an overview of the major components of the language in C# 8 and earlier. If you want to explore the language through interactive examples, try the introduction to C# tutorials.

And what is ASP.NET?
ASP.NET is an open-source, server-side web-application framework designed for web development to produce dynamic web pages. It was developed by Microsoft to allow programmers to build dynamic web sites, applications and services. The name stands for Active Server Pages Network Enabled Technologies.

And what is a View Model?
In ASP.NET MVC, ViewModel is a class that contains the fields which are represented in the strongly-typed view. It is used to pass data from controller to strongly-typed view.
ViewModel contain fields that are represented in the view (for LabelFor,EditorFor,DisplayFor helpers)
ViewModel can have specific validation rules using data annotations or IDataErrorInfo.
ViewModel can have multiple entities or objects from different data models or data source.

To learn more, make sure to watch the video, and we promise you that you'll become a better developer by the end of the video! Have fun!

#csharp #coding #tutorial #learn #microsoft #net #aspnet #mvc #viewmodel

TAGS

TutorialsEU offers you free video tutorials about programming and development for complete beginners up to experienced programmers.
This includes C#, Unity, Python, Android, Kotlin, Machine Learning, etc.

Рекомендации по теме
Комментарии
Автор

Super easy to understand, thank you !

preslaviliev
Автор

Exactly what I wanted to refresh my mind. Great video! ❤

mehdimiah
Автор

Brilliant. Just what I was looking for and explained so easy. I will certainly have a look at your more in depth course. Thank you

hnpmtsj
Автор

Excellent easy to understand video for an MVC beginner like myself. Thank you!

toprope
Автор

Great video was following a tutorial and they added ViewModels but didnt explain WHY
Thank You for the video

franky
Автор

thank you for your video! it helped me!

tomdrossart
Автор

Thank you! I solved my problem with your video

Alirezab
Автор

great video....what are other things we need to learn about viewmodels and their interaction with razor pages

vpowerup
Автор

This may be a stupid question, but why don't we join the zoo and the animal models with a foreign key relationship and use the properties in the base model instead of using view models?

bushraw