What I mean is, we will write a custom class with the name of ADODB which will have all the properties and methods supported by ADO objects. However, implementation of these methods will have ADO.Net objects.
If you are bringing data into your application, the only way you could write code the way you describe is by returning all of your data in arrays or assigning all individual fields in your class module (and that would be a pain in the butt - just as easy to move to ado.net now). So only that module references ADO. If you are just calling stored procedures to execute inserts, updates, deletions - then what you are proposing would be easier - but that does not seem like a real life scenario.
If I understand what you want to do, It can be done. The question is should it. I know the pain that is migrating from ADO to ADO.Net, but that pain forced me to re-examine how I was handling data at the application level. Now, I have 2 classes that do all of the acutal ado.net code (One for SQL Sever, and one for OLEDB) All of my interaction takes place in an abstraction layer. So the App calls business objects, the business objects call data objects, the data objects call the appropriate data abstraction object, and that object calls the proper data base.
The joy is that I can create a set of data objects for tables on different databases, even in different types of data bases. I can then take those data objects and plug them into any app I make and have instant access to the database with out having to type a single line of ADO.Net code. With this template style we kicked out 20+ data gathering reports in under a week.
So as much as I prefer the 3 object model joy of ADO, I also appreciate the change in coding style that ADO.Net drove me too. That and under the hood, ADO.Net better performing and has some great tools.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.