Skip to content

Instantly share code, notes, and snippets.

@rippinrobr
Created August 2, 2012 23:04
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save rippinrobr/3241701 to your computer and use it in GitHub Desktop.
Save rippinrobr/3241701 to your computer and use it in GitHub Desktop.
updated app.config file to add Npgsql as a data provider for this app.
<?xml version="1.0" encoding="UTF-8" ?>
<configuration>
<connectionStrings>
<add name="hockeydb"
connectionString="Server=127.0.0.1;Port=5432;Database=hockeydb;User Id=demo;Password=demo;"
providerName="Npgsql"
/>
</connectionStrings>
<system.data>
<DbProviderFactories>
<add name="PostgreSQL Data Provider" invariant="Npgsql"
description=".Net Framework Data Provider for PostgreSQL"
type="Npgsql.NpgsqlFactory, Npgsql, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7"/>
</DbProviderFactories>
</system.data>
</configuration>
@gourdonski
Copy link

Great, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment