Use DTO instead of Model and Entity objects

preview_player
Показать описание
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.
Рекомендации по теме
Комментарии
Автор

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

breakpoint
Автор

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 YouTube. Thank you for contributing to the coding community.

codrhandlit
Автор

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

hihihaha
Автор

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

sagidelriego
Автор

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

riki
Автор

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

whhoo
Автор

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

Дмитрий-эис
Автор

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

osean