Home All Groups Group Topic Archive Search About
Author
24 Aug 2006 6:00 PM
sashko
We are moving our software to the web using ASP.NET 2.0 and are researching
ways to enable our software to connect to multiple databases, specifically
Oracle, SQL Server, and ASA. We have used ODBC in a client-server environment
in the past, but have now stumbled upon Provider Factories in .NET 2.0. Could
you please provide us with the pros and cons of using provider factories?

Author
25 Aug 2006 2:51 AM
Cowboy (Gregory A. Beamer)
The con, as with most patterns is two-fold:

1. Learning curve
2. Initial time to set up architecture

The pros

1. Tried and true pattern for abstracting physical from logical
implementation
2. Ability to switch from one provider to another declaratively (no
additional coding other than creating additional provider)
3. Much of the coding already completed by another party (in this case MS
through the Enterprise Library)

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think Outside the Box!
*************************************************
Show quote
"sashko" <sas***@discussions.microsoft.com> wrote in message
news:86120584-B39A-4A22-B5E1-91B1212C0008@microsoft.com...
> We are moving our software to the web using ASP.NET 2.0 and are
> researching
> ways to enable our software to connect to multiple databases, specifically
> Oracle, SQL Server, and ASA. We have used ODBC in a client-server
> environment
> in the past, but have now stumbled upon Provider Factories in .NET 2.0.
> Could
> you please provide us with the pros and cons of using provider factories?

AddThis Social Bookmark Button