protected override DataTable internalExecuteTable(string SQL)
{
DbDataReader reader = ExecuteReader(SQL);
DataTable dt = new DataTable();
dt.Load(reader);
reader.Close();
return dt;
}
"internalExecuteTable" is underlined and throws an error that "System.Xml" is not referenced and I should add the "System.Xml" reference. But why?
I use the above code to read from an SQLite database (System.Data.SQLite wrapper)
You are using System.Xml
indirectly. The DataTable
has dependencies upon classes defined in the System.Xml
assembly. If you look at the documentation for the class or if you simply explore it in your IDE, you will note that it includes many methods for reading and writing XML, for example.
By using System.Data.DataTable
, you also need to reference System.Xml
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With