What Replaced Database.ExecuteDataSet
According to Microsoft Website on Database.ExecutedDataSet method
http://msdn.microsoft.com/en-us/library/microsoft.practices.enterpriselibrary.data.database.executedataset(v=pandp.31).aspx
Retired Content
This conten开发者_开发百科t is outdated and is no longer being maintained. It is provided as a
courtesy for individuals who are still using these technologies. This page may
contain URLs that were valid when originally published, but now link to sites
or pages that no longer exist.
So my question is what is the latest and greatest perferred method to fill a DataSet or DataTable?
Microsoft wants you to use a DataReader or DataAdapter, here's Microsoft's page on filling a DataSet. It uses the Fill method on a DataAdapter.
You could then use the Add method to add DataRows to that DataSet.
v5 still has it.
"This content is outdated" in this case means that you are looking in old documentation of entlib.
EDIT: Method is not outdated nor replaced. It still exists in new version of entlib.
EDIT2: And the method is not deprecated.
精彩评论