KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm having a debate with another programmer I work with. For a database return type, are there any significant memory usage or performance differences, or other cons which should make someone avoid using the DataSets and DataTables and favour types which implement IEnumerable<T> ... or vice versa I prefer returning types which implement IEnumerable<T> ( List<T>, T[] etc ) because it's more lightweight, strongly typed to the object when accessing properties, allows richer information about the underlying type etc. They do take more time to set up though when manually using the data reader. Is the only reason to use DataTables these day just lazyness?
Tags (comma-separated)
Save Edits
Cancel