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.
Пікірлер: 13
@breakpoint682411 ай бұрын
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 Жыл бұрын
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 KZbin. Thank you for contributing to the coding community.
@hihihaha3756 Жыл бұрын
This has been the best explanation / code demostration regarding the subject I have found until now. Kudos
@sagi33delriego82 Жыл бұрын
Excellent , Thanks for public this video , I'm was learn today very much.
@riki2404 Жыл бұрын
Thank you for the video. Got a good understanding of the concept.
@bibekk4 күн бұрын
Good
@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
@wh0hoo2 жыл бұрын
One might add that it is a good practice to use static constructors instead of such converters.
@sergeykuznetsov3249 Жыл бұрын
You probably meant Static factory methods, but still not clear about the advantages of such approach
@user-zh6ei3xh8f2 жыл бұрын
Thank you!
@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