CreateDataReader from DataSet in Visual Studio 2003
-
Hello. I have an application in VS 2005 that I must migrate to VS 2003 (what a great upgrade is 2005 btw), and I see that there is no dataset.CreateDataReader method. Is there other way to do that? Do you know from other implementation I can find anywhere?
Regards, Diego F.
-
Hello. I have an application in VS 2005 that I must migrate to VS 2003 (what a great upgrade is 2005 btw), and I see that there is no dataset.CreateDataReader method. Is there other way to do that? Do you know from other implementation I can find anywhere?
Regards, Diego F.
One way would be to miss out the dataset and manually create a DataReader using
ExecuteDataReader()
on the command.Deja View - the feeling that you've seen this post before.
-
Hello. I have an application in VS 2005 that I must migrate to VS 2003 (what a great upgrade is 2005 btw), and I see that there is no dataset.CreateDataReader method. Is there other way to do that? Do you know from other implementation I can find anywhere?
Regards, Diego F.
If think if you are migrating backwards you will find a lot of things that didn't exist in the previous version. The best workaround that I can suggest is that all DataReaders implement the IDataReader interface. Create your own class that implements the IDataReader interface that has a constructor that is a DataSet.
Upcoming FREE developer events: * Glasgow: db4o: An Embeddable Database Engine for Object-Oriented Environments, Mock Objects, SQL Server CLR Integration, Reporting Services ... My website