How does the VBUC convert ADO to ADO.NET?

Subject

ADO to ADO.NET

Applies to

ADO; ADO.NET; System.Data.Common; System.Data.SqlClient

Inquiry Description

VBUC converts COM ADODB (ADO) into ADO.NET. Does it do this via the inclusion of a .NET wrapper around ADO.NET that behaves like the ADODB classes?

Troubleshooting/solution

There are two different ways to convert ADO into ADO.NET. The first of them uses the System.Data.SqlClient namespace, which is optimized to work with SQLServer only. This strategy uses the ADO.NET classes directly, however, it involves significant manual changes since there are many functionalities from ADODB that are not present in ADO.NET, such as the ability of recordsets to keep track of the current record.

The second way of converting ADO to ADO.NET uses the System.Data.Common namespace, which can connect to any database engine. It also has Helper Classes for ADO objects such as Recordsets and Transactions, which implement the "missing" functionality using native .NET code. These classes are provided as source code, so the client can modify and distribute them if necessary. For example, under this model the ADO Recordset class is converted to a RecordSetHelper class, which is a .NET class that inherits from the ADO.NET Dataset and implements the missing functionality. This class is provided as C# source code that can be freely modified and distributed by the client.

A very detailed description of database access migration can be found here: http://www.vbtonet.com/legacy-data-access-to-net/

Submitted date

8/18/2009 6:17:35 PM


Related FAQs

None

Skip Navigation Links.
Expand ArtinSoft Visual Basic Upgrade Companion (VBUC)ArtinSoft Visual Basic Upgrade Companion (VBUC)
Expand VBUC Getting StartedVBUC Getting Started
Collapse Migration Knowledge BaseMigration Knowledge Base
Expand VBUC Errors, Warnings and IssuesVBUC Errors, Warnings and Issues
Collapse VBUC Frequently Asked QuestionsVBUC Frequently Asked Questions
Collapse General QuestionsGeneral Questions
Error 2869 during the VBUC installation
How effective is the Visual Basic Upgrade Companion at converting an application's front end?
Expand What controls does the Visual Basic Upgrade Companion support?What controls does the Visual Basic Upgrade Companion support?
Can the Visual Basic Upgrade Companion be customized?
How does the VBUC handle VB6 Collections?
How does the VBUC convert ADO to ADO.NET?
Visual Basic Upgrade Companion customization options
FAQ: What is the process to upgrade from VB5 to .Net?
ActiveX/User documents migration workaround using the VBUC
Property Page migration workaround using the VBUC
How to install the VBUC Developer Edition successfully
Is the Artinsoft.VB6.dll helper class library redistributable?
What are the code changes and other activities required before migration?
XSL operations and MSXML library migration
VBUC generated Visual Studio solution file version
Where is the source code for the support (helper) classes used by the VBUC?
How effective is the Visual Basic Upgrade Companion at converting an application's front end?
VBUC Developer Edition Offline Activation Process
What’s the difference between the License File and the Activation File
Do the VBUC migrate intrinsic VB6 functions and libraries?
Error : Retrieving the COM class factory for component with CLSID {11C67C12-105A-4F42-A5C8-CB9070F2855A} failed due to the following error: 80040154
Expand HOW TOHOW TO