Skip to content

Commit

Permalink
Upgrade npgsql
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurzaczek committed Nov 16, 2021
1 parent 15d8c0f commit c46d4d4
Show file tree
Hide file tree
Showing 15 changed files with 33 additions and 31 deletions.
2 changes: 1 addition & 1 deletion PrepareEnv/Examples/Zetbox.Cli.exe.config
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
<system.data>
<DbProviderFactories>
<remove invariant="Npgsql" />
<add name="Npgsql Data Provider" invariant="Npgsql" support="FF" description=".Net Framework Data Provider for Postgresql Server" type="Npgsql.NpgsqlFactory, Npgsql, Version=2.2.2, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7" />
<add name="Npgsql Data Provider" invariant="Npgsql" support="FF" description=".Net Framework Data Provider for Postgresql Server" type="Npgsql.NpgsqlFactory, Npgsql, Version=2.2.6, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7" />
</DbProviderFactories>
</system.data>
<startup>
Expand Down
8 changes: 3 additions & 5 deletions PrepareEnv/PrepareEnv.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,10 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Mono.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Npgsql.2.2.2\lib\net40\Mono.Security.dll</HintPath>
<HintPath>..\packages\Npgsql.2.2.6\lib\net45\Mono.Security.dll</HintPath>
</Reference>
<Reference Include="Npgsql, Version=2.2.2.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Npgsql.2.2.2\lib\net40\Npgsql.dll</HintPath>
<Reference Include="Npgsql, Version=2.2.6.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7, processorArchitecture=MSIL">
<HintPath>..\packages\Npgsql.2.2.6\lib\net45\Npgsql.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
2 changes: 1 addition & 1 deletion PrepareEnv/packages.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="GitVersionTask" version="5.3.7" targetFramework="net462" developmentDependency="true" />
<package id="Npgsql" version="2.2.2" targetFramework="net40" requireReinstallation="true" />
<package id="Npgsql" version="2.2.6" targetFramework="net462" />
<package id="UtilPack.NuGet.MSBuild" version="2.9.1" targetFramework="net462" developmentDependency="true" />
</packages>
6 changes: 5 additions & 1 deletion Tests/CompleteTests/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,17 @@
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.4.1" newVersion="4.0.4.1" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Npgsql" publicKeyToken="5d8b90d52f46fda7" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.2.6.0" newVersion="2.2.6.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<!-- See http://npgsql.projects.postgresql.org/docs/manual/UserManual.html "Using Npgsql with ProviderFactory" -->
<system.data>
<DbProviderFactories>
<remove invariant="Npgsql" />
<add name="Npgsql Data Provider" invariant="Npgsql" support="FF" description=".Net Framework Data Provider for Postgresql Server" type="Npgsql.NpgsqlFactory, Npgsql, Version=2.2.2, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7" />
<add name="Npgsql Data Provider" invariant="Npgsql" support="FF" description=".Net Framework Data Provider for Postgresql Server" type="Npgsql.NpgsqlFactory, Npgsql, Version=2.2.6, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7" />
</DbProviderFactories>
</system.data>
<!--
Expand Down
6 changes: 5 additions & 1 deletion Tests/Zetbox.DalProvider.EF.Tests/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<system.data>
<DbProviderFactories>
<remove invariant="Npgsql" />
<add name="Npgsql Data Provider" invariant="Npgsql" support="FF" description=".Net Framework Data Provider for Postgresql Server" type="Npgsql.NpgsqlFactory, Npgsql, Version=2.2.2, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7" />
<add name="Npgsql Data Provider" invariant="Npgsql" support="FF" description=".Net Framework Data Provider for Postgresql Server" type="Npgsql.NpgsqlFactory, Npgsql, Version=2.2.6, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7" />
</DbProviderFactories>
</system.data>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" /></startup>
Expand All @@ -58,6 +58,10 @@
<assemblyIdentity name="System.Runtime.Extensions" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.1.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Npgsql" publicKeyToken="5d8b90d52f46fda7" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.2.6.0" newVersion="2.2.6.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
2 changes: 1 addition & 1 deletion Tests/Zetbox.IntegrationTests/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
<system.data>
<DbProviderFactories>
<remove invariant="Npgsql" />
<add name="Npgsql Data Provider" invariant="Npgsql" support="FF" description=".Net Framework Data Provider for Postgresql Server" type="Npgsql.NpgsqlFactory, Npgsql, Version=2.2.2, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7" />
<add name="Npgsql Data Provider" invariant="Npgsql" support="FF" description=".Net Framework Data Provider for Postgresql Server" type="Npgsql.NpgsqlFactory, Npgsql, Version=2.2.6, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7" />
</DbProviderFactories>
</system.data>
<!--
Expand Down
2 changes: 1 addition & 1 deletion Tests/Zetbox.Server.Tests/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
<system.data>
<DbProviderFactories>
<remove invariant="Npgsql" />
<add name="Npgsql Data Provider" invariant="Npgsql" support="FF" description=".Net Framework Data Provider for Postgresql Server" type="Npgsql.NpgsqlFactory, Npgsql, Version=2.2.2, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7" />
<add name="Npgsql Data Provider" invariant="Npgsql" support="FF" description=".Net Framework Data Provider for Postgresql Server" type="Npgsql.NpgsqlFactory, Npgsql, Version=2.2.6, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7" />
</DbProviderFactories>
</system.data>
<startup>
Expand Down
2 changes: 1 addition & 1 deletion Zetbox.Cli/app.config
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
<system.data>
<DbProviderFactories>
<remove invariant="Npgsql" />
<add name="Npgsql Data Provider" invariant="Npgsql" support="FF" description=".Net Framework Data Provider for Postgresql Server" type="Npgsql.NpgsqlFactory, Npgsql, Version=2.2.2, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7" />
<add name="Npgsql Data Provider" invariant="Npgsql" support="FF" description=".Net Framework Data Provider for Postgresql Server" type="Npgsql.NpgsqlFactory, Npgsql, Version=2.2.6, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7" />
</DbProviderFactories>
</system.data>
<startup>
Expand Down
12 changes: 5 additions & 7 deletions Zetbox.DalProvider.Ef/Zetbox.DalProvider.Ef.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,13 @@
</Reference>
<Reference Include="Microsoft.CSharp" />
<Reference Include="Mono.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Npgsql.2.2.2\lib\net40\Mono.Security.dll</HintPath>
<HintPath>..\packages\Npgsql.2.2.6\lib\net45\Mono.Security.dll</HintPath>
</Reference>
<Reference Include="Npgsql, Version=2.2.2.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Npgsql.2.2.2\lib\net40\Npgsql.dll</HintPath>
<Reference Include="Npgsql, Version=2.2.6.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7, processorArchitecture=MSIL">
<HintPath>..\packages\Npgsql.2.2.6\lib\net45\Npgsql.dll</HintPath>
</Reference>
<Reference Include="Npgsql.EntityFrameworkLegacy">
<HintPath>..\packages\Npgsql.EntityFrameworkLegacy.2.2.2\lib\net40\Npgsql.EntityFrameworkLegacy.dll</HintPath>
<Reference Include="Npgsql.EntityFrameworkLegacy, Version=2.2.6.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7, processorArchitecture=MSIL">
<HintPath>..\packages\Npgsql.EntityFrameworkLegacy.2.2.6\lib\net45\Npgsql.EntityFrameworkLegacy.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.ComponentModel.DataAnnotations" />
Expand Down
4 changes: 2 additions & 2 deletions Zetbox.DalProvider.Ef/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<package id="EntityFramework" version="4.1.10311.0" targetFramework="net40" />
<package id="GitVersionTask" version="5.3.7" targetFramework="net462" developmentDependency="true" />
<package id="log4net" version="2.0.12" targetFramework="net462" />
<package id="Npgsql" version="2.2.2" targetFramework="net40" requireReinstallation="true" />
<package id="Npgsql.EntityFrameworkLegacy" version="2.2.2" targetFramework="net40" requireReinstallation="true" />
<package id="Npgsql" version="2.2.6" targetFramework="net462" />
<package id="Npgsql.EntityFrameworkLegacy" version="2.2.6" targetFramework="net462" />
<package id="UtilPack.NuGet.MSBuild" version="2.9.1" targetFramework="net462" developmentDependency="true" />
</packages>
2 changes: 1 addition & 1 deletion Zetbox.Server.HttpService/Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@
<system.data>
<DbProviderFactories>
<remove invariant="Npgsql" />
<add name="Npgsql Data Provider" invariant="Npgsql" support="FF" description=".Net Framework Data Provider for Postgresql Server" type="Npgsql.NpgsqlFactory, Npgsql, Version=2.2.2, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7" />
<add name="Npgsql Data Provider" invariant="Npgsql" support="FF" description=".Net Framework Data Provider for Postgresql Server" type="Npgsql.NpgsqlFactory, Npgsql, Version=2.2.6, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7" />
</DbProviderFactories>
</system.data>
</configuration>
4 changes: 2 additions & 2 deletions Zetbox.Server.Service/app.config
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
<connectionString value="data source=localhost\sqlexpress;initial catalog=zetbox;integrated security=true" />
<commandText value="INSERT INTO base.[ExceptionLog] ([Date],[Thread],[Level],[Logger],[Message], [Exception]) VALUES (@log_date, @thread, @log_level, @logger, @message, @exception)" />
-->
<connectionType value="Npgsql.NpgsqlConnection, Npgsql, Version=2.2.2, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7" />
<connectionType value="Npgsql.NpgsqlConnection, Npgsql, Version=2.2.6, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7" />
<connectionString value="Server=localhost;Port=5432;Database=zetbox;User Id=zetbox;Password=b-cXqMyXEYea2kkjUhkS" />
<commandText value="INSERT INTO &quot;base&quot;.&quot;ExceptionLog&quot; (&quot;Date&quot;,&quot;Thread&quot;,&quot;Level&quot;,&quot;Logger&quot;,&quot;Message&quot;, &quot;Exception&quot;) VALUES (:log_date, :thread, :log_level, :logger, :message, :exception)" />
<parameter>
Expand Down Expand Up @@ -374,7 +374,7 @@
<system.data>
<DbProviderFactories>
<remove invariant="Npgsql" />
<add name="Npgsql Data Provider" invariant="Npgsql" support="FF" description=".Net Framework Data Provider for Postgresql Server" type="Npgsql.NpgsqlFactory, Npgsql, Version=2.2.2, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7" />
<add name="Npgsql Data Provider" invariant="Npgsql" support="FF" description=".Net Framework Data Provider for Postgresql Server" type="Npgsql.NpgsqlFactory, Npgsql, Version=2.2.6, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7" />
</DbProviderFactories>
</system.data>
<startup>
Expand Down
8 changes: 3 additions & 5 deletions Zetbox.Server/Zetbox.Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,10 @@
<Reference Include="Microsoft.Build.Framework" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="Mono.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Npgsql.2.2.2\lib\net40\Mono.Security.dll</HintPath>
<HintPath>..\packages\Npgsql.2.2.6\lib\net45\Mono.Security.dll</HintPath>
</Reference>
<Reference Include="Npgsql, Version=2.2.2.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Npgsql.2.2.2\lib\net40\Npgsql.dll</HintPath>
<Reference Include="Npgsql, Version=2.2.6.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7, processorArchitecture=MSIL">
<HintPath>..\packages\Npgsql.2.2.6\lib\net45\Npgsql.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.configuration" />
Expand Down
2 changes: 1 addition & 1 deletion Zetbox.Server/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
<package id="Autofac" version="3.5.2" targetFramework="net462" />
<package id="GitVersionTask" version="5.3.7" targetFramework="net462" developmentDependency="true" />
<package id="log4net" version="2.0.12" targetFramework="net462" />
<package id="Npgsql" version="2.2.2" targetFramework="net40" requireReinstallation="true" />
<package id="Npgsql" version="2.2.6" targetFramework="net462" />
<package id="UtilPack.NuGet.MSBuild" version="2.9.1" targetFramework="net462" developmentDependency="true" />
</packages>
2 changes: 1 addition & 1 deletion publish/zetboxBasic-Server.nuspec.template
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<dependencies>
<dependency id="zetboxBasic" version="[##version##]" />
<dependency id="zetboxBasic-Common" version="[##version##]" />
<dependency id="Npgsql" version="[2.2.2,3)" />
<dependency id="Npgsql" version="[2.2.6,3)" />
</dependencies>
</metadata>
<files>
Expand Down

0 comments on commit c46d4d4

Please sign in to comment.