Creating IDbDataAdapter from IDbConnection/IDbCommand

  • Thread starter Thread starter Aguyngueran
  • Start date Start date
A

Aguyngueran

Hello,

I know that I can use IDbConnection.CreateCommand () to write common
code for .NET data providers but what about IDbDataAdapter, is there
any method that let's me create IDbDataAdpater from IDbCommand or
IDbConnection, I mean all I have is IDbConnection as in parameter and
have no idea what kind of ? Or maybe I have to use If (connection is
OleDbConection)... ???

Thank You

Best regards
Rafal Grzybowski
 
Back
Top