d--b
d--b

Reputation: 5779

ADODB.Connection wrapper as System.Data.Common.DbConnection

Is there an easy way to wrap an ADODB.Connection COM object (the one defined in adodb.dll) into a System.Data.Common.DbConnection ?

This connection is created in VBA and I would like to pass it to some C# component that expect System.Data.Common.DbConnection.

Upvotes: 2

Views: 582

Answers (1)

Darin Dimitrov
Darin Dimitrov

Reputation: 1039368

Nope, you cannot do that. ADO.NET is very different than ADO.

Upvotes: 1

Related Questions