#13 MySQLClientFactory

open
nobody
5
2005-12-15
2005-12-15
Johan
No

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
DbCommand.

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks