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