Permalink
Browse files

Merge pull request #224 from drusellers/pg-enhancements

Pg enhancements
  • Loading branch information...
BiggerNoise committed Oct 11, 2017
2 parents 4f58723 + a0e519c commit 78d58b2f6630692851a338b3e7fe51a4382efcd4
Binary file not shown.
Binary file not shown.

This file was deleted.

Oops, something went wrong.
@@ -1,5 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.data>
<DbProviderFactories>
<add name="Npgsql" invariant="Npgsql"
description=".Net Framework Data Provider for Postgres"
type="Npgsql.NpgsqlFactory, Npgsql, Version=3.0.3.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7"/>
</DbProviderFactories>
</system.data>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
@@ -88,7 +88,15 @@ public override void set_provider()
private static string build_connection_string(string server_name, string database_name, string user_name, string password)
{
return string.Format("Server={0};Database={1};Port=5432;UserId={2};Password={3};", server_name, database_name, user_name, password);
var csb = new NpgsqlConnectionStringBuilder();
csb.Host = server_name;
csb.Database = database_name;
csb.Username = user_name;
csb.Password = password;
csb.Port = 5432;
return csb.ToString();
}
public override string create_database_script()
@@ -3,4 +3,5 @@
<package id="FluentNHibernate" version="1.3.0.733" targetFramework="net35" />
<package id="Iesi.Collections" version="3.3.2.4000" targetFramework="net35" />
<package id="NHibernate" version="3.3.2.4000" targetFramework="net35" />
<package id="Npgsql" version="3.1.1" targetFramework="net45" />
</packages>
@@ -43,15 +43,13 @@
<Reference Include="Iesi.Collections, Version=1.0.1.0, Culture=neutral, PublicKeyToken=aa95f207798dfdb4, processorArchitecture=MSIL">
<HintPath>..\..\packages\Iesi.Collections.3.3.2.4000\lib\Net35\Iesi.Collections.dll</HintPath>
</Reference>
<Reference Include="Mono.Security">
<HintPath>..\..\lib\references\PostgreSQL\Mono.Security.dll</HintPath>
</Reference>
<Reference Include="NHibernate, Version=3.3.1.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\packages\NHibernate.3.3.2.4000\lib\Net35\NHibernate.dll</HintPath>
</Reference>
<Reference Include="Npgsql">
<HintPath>..\..\lib\references\PostgreSQL\Npgsql.dll</HintPath>
<Reference Include="Npgsql, Version=3.1.1.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7, processorArchitecture=MSIL">
<HintPath>..\..\packages\Npgsql.3.1.1\lib\net45\Npgsql.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.configuration" />

0 comments on commit 78d58b2

Please sign in to comment.