Using ADO in .NET Applications

Setting up a .NET application to use ADO objects is not really different from setting up the same application to take advantage of any other COM object. You can use COM objects from within any type of .NET application as long as you obtain an assembly that exposes the COM type library information as .NET metadata.

The .NET Framework offers a tool named tlbimp.exe that reads in a COM type library and generates an assembly that exposes to all .NET clients the functionality of the type library as a .NET class. Behind the scenes, the tool creates and compiles a class that exposes the same methods and properties as the original COM object. During this process, the names are preserved and the types involved are adapted ...

Get Building Web Solutions with ASP.NET and ADO.NET now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.