Re: Generic provider for .Net

From: "Francisco Figueiredo Jr(dot)" <francisco(at)npgsql(dot)org>
To: Rob Richardson <Rob(dot)Richardson(at)rad-con(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Generic provider for .Net
Date: 2009-01-06 21:31:37
Message-ID: 438d02260901061331ue9de8c3w1da47feb17ebce98@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Jan 6, 2009 at 7:00 PM, Rob Richardson
<Rob(dot)Richardson(at)rad-con(dot)com> wrote:
> My stumbling through the wilds of .Net, ADO.Net and PostGRESQL continues...
>

With this requirement, I would suggest you to use dbproviderfactory
support of .Net

This is a sample link with informations about it:

http://msdn.microsoft.com/en-us/library/dd0w4a2z%28VS.80%29.aspx

http://www.davidhayden.com/blog/dave/archive/2007/10/08/CreatingDataAccessLayerUsingDbProviderFactoriesDbProviderFactory.aspx

A little googling can provide you with more examples.

Also, on Npgsql manual there is the entry you have to make to register
Npgsql as a dbproviderfactory.

Also note that Npgsql supports sqlclient parameter style with the '@'
prefix to easy porting sql code from sqlserver to postgresql.

I hope it helps.

--
Regards,

Francisco Figueiredo Jr.
Npgsql Lead Developer
http://fxjr.blogspot.com
http://www.npgsql.org

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2009-01-06 21:33:30 Re: Slow Vacuum was: vacuum output question
Previous Message Dan Armbrust 2009-01-06 21:25:29 Re: Slow Vacuum was: vacuum output question