What is a DTO? Data Transfer Object
Вставка
- Опубліковано 14 чер 2024
- Go to StudyCoding.org to subscribe to the full list of courses and get source code for projects.
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
• C# Web Development Cou...
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.
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.
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
Thank you so much for this! You presented the information very well and helped me understand DTO's.
You are so welcome!
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.
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
I know exactly what you mean! So much has changed over the years since I went to school in 2012-2015. Companies have been bought out, SO MANY java updates/versions. It's a lot to catch up on
Thank you this was the best video I found explaining DTOs 👍
The best video about DTO, Thanks Professor 😀
Gracias Mister Sluiter....muy bien explicado.....saludos de los andes peruanos
Thank you for the video it helped me a lot to understand the DTO concept
Thank you for great explanation. Code photos made it easy to understand.
Your explanation was quite clear, thank you. It helped me a lot.
Glad it helped!
That was a great explanation!
Best explanation. Thank you so much.
very helpful. Thank you.
So good! Thank you so much!
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!
You are correct. The ORM probably gives you the option for creating visible options for each property. I would consider the DTO to be in the services layer.
Excellent...thank you! I subscribed :-)
Great video!
Thanks for the visit
This is like a graph in GraphQL! As someone coming from a React/node
Sounded it like to me.
Good
Thanks