Use DTO instead of Model and Entity objects

Поделиться
HTML-код
  • Опубликовано: 13 фев 2022
  • In this video, we try to understand why using DTO classes is important. And why using entity objects is not ok when passing data through different layers.

Комментарии • 12

  • @breakpoint6824
    @breakpoint6824 10 месяцев назад

    I found this video after watching several videos and losing time. This video has direct explanation with a simple and proper example. Thank you

  • @cod3rhandl3it
    @cod3rhandl3it Год назад +2

    This is a solid video regarding DTOs over Entities, using code examples and succinct descriptions for some primary reasons DTOs should be used over Entities. Much better than other videos I've found on RUclips. Thank you for contributing to the coding community.

  • @hihihaha3756
    @hihihaha3756 Год назад

    This has been the best explanation / code demostration regarding the subject I have found until now. Kudos

  • @riki2404
    @riki2404 Год назад +1

    Thank you for the video. Got a good understanding of the concept.

  • @sagi33delriego82
    @sagi33delriego82 Год назад

    Excellent , Thanks for public this video , I'm was learn today very much.

  • @osean186
    @osean186 Год назад

    Will the use of a DTO like this add to the memory load when there is a lot of data? Because after we get data from database, we do map again to DTO class. Thank you

  • @wh0hoo
    @wh0hoo 2 года назад +1

    One might add that it is a good practice to use static constructors instead of such converters.

    • @sergeykuznetsov3249
      @sergeykuznetsov3249 Год назад

      You probably meant Static factory methods, but still not clear about the advantages of such approach

  • @user-vi9nu9ew1z
    @user-vi9nu9ew1z Год назад

    As far as I understand, there may also be a situation when you need to pass an object containing fields that are not in the model

  • @user-zh6ei3xh8f
    @user-zh6ei3xh8f 2 года назад

    Thank you!

  • @alexandrazamfir548
    @alexandrazamfir548 11 месяцев назад

    do you have also the source code ?...

  • @mysocial
    @mysocial Год назад

    Why you use public in your DTO ?