I would like a class which inherits from
System.Data.Common.DbProviderFactory. When multiple
database providers must be supported in the same
application this is useful.
Most important objects can of course be created through
a System.Data.IDbConnection object or a
System.Data.IDbCommand object. But for some reason
IDbDataAdapter is not included in those interfaces(!)
which means that DataSets cannot be populated easily
through generic code.
However the DbDataProviderFactory abstract class
defines methods for creating all kinds of database
objects including System.Data.Common.DbDataAdapter
(abstract implementation of IDbDataAdapter).
I could have written this class myself if only
MySQLDataAdapter had inherited from DbDataAdapter,
MySQLConnection from DbConnection and MySQLCommand from
Log in to post a comment.