Use DTO instead of Model and Entity objects

Поділитися
Вставка
  • Опубліковано 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

  • @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 UA-cam. Thank you for contributing to the coding community.

  • @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

  • @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.

  • @user-zh6ei3xh8f
    @user-zh6ei3xh8f Рік тому

    Thank you!

  • @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

  • @alexandrazamfir548
    @alexandrazamfir548 11 місяців тому

    do you have also the source code ?...

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

    Why you use public in your DTO ?