Attention: We are retiring the ASP.NET Community Blogs. Learn more >

ADO.NET Provider Factory

I've been reading about the new additions coming in ADO.NET 2.0.  One of them is a “Provider Factory” (DbProviderFactory) interface for creating connections in a more abstract fashion.  To read about how it works:

Need similar functionality today?  Try the Provider Factory which has been part of the Mono class library for quite a while. And, of course, it works on regular .NET too!  I'm glad Microsoft liked my idea. :-)

1 Comment

  • A Data provider factory was so butt obvious that I'm surprised, and disappointed, that Microsoft didn't include one in the first place. They are so simple to build, it's practically the first pattern that anyone learns. It just amazed me that they didn't have one. Or at least follow the JDBC pattern and just let us specify the driver and not have to worry about different namespaces for each provider. sheesh.

Comments have been disabled for this content.