[Mono-list] ADO.NET Provider Factory in CVS

Rodrigo Moya rodrigo@ximian.com
12 Nov 2002 13:48:52 +0100


On Tue, 2002-11-12 at 07:06, Brian Ritchie wrote:
> I've put the initial version of the ProviderFactory objects into CVS. This 
> will give us a foundation for abstract data provider access within Mono.  It 
> can also be used in the MS.NET framework.
> 
> The code is in CVS under /mcs/class/Mono.Data.  I've included build files, 
> but haven't tied it into the main build process.
> 
> 
> Here's a basic overview of the object model:
> 
> * ProviderFactory: used to create new Connections, DataAdapters, or 
> Commands.  All objects are returned using the provider interfaces such as 
> IDbCommand.
> * DataTools: static methods for doing common tasks like filling a DataSet 
> with the contents of a select statement.
> * ProviderCollection: list of providers configured in the system.  Initially 
> loaded from app.config, but can be modified at run-time.
> * Provider: represents a given provider and holds information needed to 
> create the types.
> * ProviderSectionHandler: works behind the scenes to load the list of 
> providers from the app.config into a ProviderCollection.
> 
> See /mcs/class/Mono.Data/app.config for sample configuration file.
> 
> 
> Alrighty...now for some examples:
> 
this looks awesome Brian. Great work!

cheers
-- 
Rodrigo Moya <rodrigo@ximian.com>