SyntaxFix
Write A Post
Hire A Developer
Questions
You can load a DataTable directly from a data reader using the Load() method that accepts an IDataReader.
DataTable
Load()
IDataReader
var dataReader = cmd.ExecuteReader(); var dataTable = new DataTable(); dataTable.Load(dataReader);