Ahh. I've run into this sort of thing before. Allow me to translate what your colleague told you.
There are known issues and bugs with using DataSet, that it makes code not readable and that it is generally better to use DataTables and multiple calls to stored procs.
Means
As the more senior developer here, I haven't worked with DataSets enough to know how to use them effectively. I remember what people said about them when they were brand new, but I'm an old dog that doesn't learn new tricks, and I want you to do things how I do them so I don't look bad.
It's regrettably common. Where I work now, the guy who used to be the web developer here tried to convince me that Linq was "too new" and "full of bugs" because (as I later discovered) he couldn't read a Lambda expression. Blew his damn mind when I showed him C# implied property fields.
If you're using them right and commenting your code, DataSets
aren't unreadable or buggy. DataTables
with stored procedure calls are just as valid, but a DataSet
is basically a collection of DataTables
on steroids. You're probably filling both with stored procedures or straight up LINQ to SQL. When working with any database, though, the question becomes "how can I do the most work with the least number of database calls while not impacting performance of either my app or the server, AND over a network connection". The answer to that should drive your data collection method.