At some point, it depends on the purpose of the library, or, I would say, the functionality of the library. Starting with OOP cheating, the “general consensus” is to first get / retrieve data in the DAL using datareaders as they are faster, then load your objects and close your readers, however this is not always the case. To keep things simple, some transmit the data set in such a way that gridviews can be limited and swap / sort can be enabled with minimal code. Remember that it is simple.
However, in the reporting application, I noticed a resemblance to data sets, especially if the data is opened by web services.
The cost of serialization will be based on the use of the application, as well as on experience. An inexperience developer can return from 3,000 to 50,000 rows of unnecessary data in a data set. Remember that a dataset is an animal, but with great functionality. Use wisely.
Most ORMs do serialization behind the scenes (I fix it here), so it’s fair to say that it won’t cost that much, but again it depends on the application.
source share