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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.