From 01b9f8aaa1d9d248e7c2878c8cacbafd52ea46a7 Mon Sep 17 00:00:00 2001 From: Adam Schroder Date: Fri, 13 Nov 2020 09:13:28 +1100 Subject: [PATCH] Update to net5.0 and all packages --- src/NPoco.JsonNet/NPoco.JsonNet.csproj | 2 +- src/NPoco.SqlServer/NPoco.SqlServer.csproj | 2 +- src/NPoco/NPoco.csproj | 7 ++++--- .../FluentTests/QueryTests/QueryProviderTests.cs | 4 ++-- test/NPoco.Tests/NPoco.Tests.csproj | 10 +++++----- 5 files changed, 13 insertions(+), 12 deletions(-) diff --git a/src/NPoco.JsonNet/NPoco.JsonNet.csproj b/src/NPoco.JsonNet/NPoco.JsonNet.csproj index d10c21d9..429714ea 100644 --- a/src/NPoco.JsonNet/NPoco.JsonNet.csproj +++ b/src/NPoco.JsonNet/NPoco.JsonNet.csproj @@ -3,7 +3,7 @@ Provides an implementation to use Json.NET as the serializer for serialized columns 5.0.0 - netstandard2.0;netstandard2.1 + net461;netstandard2.0;netstandard2.1 NPoco.JsonNet NPoco.JsonNet orm;sql;micro-orm;database;mvc diff --git a/src/NPoco.SqlServer/NPoco.SqlServer.csproj b/src/NPoco.SqlServer/NPoco.SqlServer.csproj index b194eef5..1df466e1 100644 --- a/src/NPoco.SqlServer/NPoco.SqlServer.csproj +++ b/src/NPoco.SqlServer/NPoco.SqlServer.csproj @@ -3,7 +3,7 @@ An extremely easy to use Micro-ORM supporting Sql Server. 5.0.0 - netstandard2.0;netstandard2.1 + net461;netstandard2.0;netstandard2.1 NPoco.SqlServer NPoco.SqlServer Adam Schröder diff --git a/src/NPoco/NPoco.csproj b/src/NPoco/NPoco.csproj index 8d197b81..4b5caf72 100644 --- a/src/NPoco/NPoco.csproj +++ b/src/NPoco/NPoco.csproj @@ -2,7 +2,7 @@ An extremely easy to use Micro-ORM supporting Sql Server, MySQL, PostgreSQL, Oracle, Sqlite, SqlCE. - netstandard2.0;netstandard2.1 + net461;netstandard2.0;netstandard2.1 NPoco NPoco 5.0.0 @@ -21,8 +21,9 @@ - - + + + diff --git a/test/NPoco.Tests/FluentTests/QueryTests/QueryProviderTests.cs b/test/NPoco.Tests/FluentTests/QueryTests/QueryProviderTests.cs index 1334faa3..82851c68 100644 --- a/test/NPoco.Tests/FluentTests/QueryTests/QueryProviderTests.cs +++ b/test/NPoco.Tests/FluentTests/QueryTests/QueryProviderTests.cs @@ -357,7 +357,7 @@ public void QueryWithProjectionAndEnclosedMethod() SetCurrentCulture(new CultureInfo("en-US")); var users = Database.Query() - .ProjectTo(x => new ProjectUser2 { FormattedAge = string.Format("{0:n}", x.Age) }); + .ProjectTo(x => new ProjectUser2 { FormattedAge = x.Age.ToString("n2") }); Assert.AreEqual("21.00", users[0].FormattedAge); Assert.AreEqual(15, users.Count); @@ -384,7 +384,7 @@ public void QueryWithProjectionAndEnclosedMethod1() // these arguments are properly supported (ProcessMethodSearchRecursively supports // NewArrayExpression). var users = Database.Query() - .ProjectTo(x => new ProjectUser2 { FormattedAge = string.Format("{0:n} {1:n} {2:n} {3:n} {4:n} {5:n} {6:n}", + .ProjectTo(x => new ProjectUser2 { FormattedAge = string.Format("{0:n2} {1:n2} {2:n2} {3:n2} {4:n2} {5:n2} {6:n2}", x.Age, x.Age, x.Age, x.Age, x.Age, x.Age, x.Age) }); Assert.AreEqual("21.00 21.00 21.00 21.00 21.00 21.00 21.00", users[0].FormattedAge); diff --git a/test/NPoco.Tests/NPoco.Tests.csproj b/test/NPoco.Tests/NPoco.Tests.csproj index 7a77c6dc..ecda6821 100644 --- a/test/NPoco.Tests/NPoco.Tests.csproj +++ b/test/NPoco.Tests/NPoco.Tests.csproj @@ -3,7 +3,7 @@ NPoco Tests 5.0.0 - netcoreapp3.1 + net5.0 NPoco.Tests Library NPoco.Tests @@ -22,12 +22,12 @@ - + - - - + + +