Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save uzbekdev1/6c46411f41cfecff0d5b06b684636e9a to your computer and use it in GitHub Desktop.
Save uzbekdev1/6c46411f41cfecff0d5b06b684636e9a 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment