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
  • Наука та технологія

КОМЕНТАРІ • 29

  • @EminoMeneko
    @EminoMeneko 2 роки тому +19

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

  • @tylerbenton4495
    @tylerbenton4495 2 роки тому +6

    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.

  • @issammansour2530
    @issammansour2530 Рік тому +1

    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

  • @staleciabatta1
    @staleciabatta1 2 роки тому +7

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

  • @oz4549
    @oz4549 2 роки тому

    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.

  • @2005Azm
    @2005Azm 3 роки тому +1

    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

    • @westonpeabody8010
      @westonpeabody8010 3 роки тому

      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

  • @hroman_codes
    @hroman_codes 2 роки тому

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

  • @mnmn2422
    @mnmn2422 2 роки тому

    The best video about DTO, Thanks Professor 😀

  • @josbexerra8115
    @josbexerra8115 2 роки тому

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

  • @paulfriedrichschulz1964
    @paulfriedrichschulz1964 3 роки тому

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

  •  2 роки тому

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

  • @caiomaia3
    @caiomaia3 2 роки тому +1

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

  • @windwakerthe1
    @windwakerthe1 2 роки тому

    That was a great explanation!

  • @mehdis948
    @mehdis948 Рік тому

    Best explanation. Thank you so much.

  • @QuantumByt3s
    @QuantumByt3s Рік тому

    very helpful. Thank you.

  • @carol00210
    @carol00210 2 роки тому

    So good! Thank you so much!

  • @adventurer2395
    @adventurer2395 2 роки тому +2

    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!

    • @shadsluiter
      @shadsluiter  2 роки тому

      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.

  • @philbowden3894
    @philbowden3894 2 роки тому

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

  • @BASKIN1318
    @BASKIN1318 2 роки тому

    Great video!

  • @lukababu
    @lukababu 2 роки тому

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

    • @oz4549
      @oz4549 2 роки тому

      Sounded it like to me.

  • @BahawalTV
    @BahawalTV 3 роки тому

    Good