What is a DTO? Data Transfer Object

preview_player
Показать описание
What is a DTO (Data Transfer Object) and why should you use one?

How to build web apps with C# and ASP.NET Complete Course Playlist

Index
0:00 Introduction
0:22 JSON data an REST API
1:00 DTO makes a data class more presentable by hiding sensitive data
2:20 Mapping and automapping from a class to a dto
3:00 Combine two classes by bundling properties into a single dto
4:15 DTO can provide a calculated data property
6:10 DTO can protect your api from breaking updates
Рекомендации по теме
Комментарии
Автор

Best explanation I found so far. Simple, right to the point is what I love.

EminoMeneko
Автор

After hours of searching to understand DTOs, I don't get the point of using it and finally I found this amazing explanation.
So understandable and clear 💯
Thank you so much

issammansour
Автор

I want to say thank you so much. I've been struggling to understand DTOs and why they're so useful. This video has helped me fully understand it and why I should want to implement this.

tylerbenton
Автор

This is the best explanation for this subject. I have been scratching my head trying to understand it until I watched this video. Thank you.

oz
Автор

Thank you so much for this! You presented the information very well and helped me understand DTO's.

staleciabatta
Автор

I've been learning a lot in here, hopefully this get me back on track with this industry I'm missing so much! Thank sir

Azm
Автор

The best video about DTO, Thanks Professor 😀

mnmn
Автор

Gracias Mister Sluiter....muy bien de los andes peruanos

josbexerra
Автор

Thank you this was the best video I found explaining DTOs 👍

hroman_codes
Автор

Your explanation was quite clear, thank you. It helped me a lot.

caiomaia
Автор

Thank you for great explanation. Code photos made it easy to understand.

Автор

Thank you for the video it helped me a lot to understand the DTO concept

paulfriedrichschulz
Автор

After watching many videos on this topic, your explanation has been the best: to the point, clear, visual, and with great examples. Question:  If you're using an ORM that gives you the option to hide/select the fields you want when data is returned from the database, can you ignore having the DTO and only stick with your model/domain objects for simplicity/less maintenance? Or does that approach tightly couple my business rules to a particular db implementation? Thank you!

adventurer
Автор

Excellent...thank you! I subscribed :-)

philbowden
Автор

This is like a graph in GraphQL! As someone coming from a React/node

lukababu