From dddd102eefd94770492d5bc19e2679745f11889f Mon Sep 17 00:00:00 2001 From: Marc Gravell Date: Tue, 8 Oct 2024 13:23:00 +0100 Subject: [PATCH] update package refs and fixup (#2120) --- Directory.Packages.props | 47 ++++++++++--------- .../Dapper.Tests.Performance.csproj | 12 ++++- .../Linq2DB/Linq2DBContext.cs | 3 +- tests/Dapper.Tests/WrappedReaderTests.cs | 7 ++- 4 files changed, 43 insertions(+), 26 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 4c55df6f..23d2ece4 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -6,41 +6,46 @@ - + + - + - - - - - - - - - - + + + + + + + + + + - - + + - + - - - + + + - + + + + + - - + + \ No newline at end of file diff --git a/benchmarks/Dapper.Tests.Performance/Dapper.Tests.Performance.csproj b/benchmarks/Dapper.Tests.Performance/Dapper.Tests.Performance.csproj index 52396c03..dd0269a0 100644 --- a/benchmarks/Dapper.Tests.Performance/Dapper.Tests.Performance.csproj +++ b/benchmarks/Dapper.Tests.Performance/Dapper.Tests.Performance.csproj @@ -14,7 +14,7 @@ - + @@ -28,6 +28,16 @@ + + + + + + + + + + diff --git a/benchmarks/Dapper.Tests.Performance/Linq2DB/Linq2DBContext.cs b/benchmarks/Dapper.Tests.Performance/Linq2DB/Linq2DBContext.cs index 0922cd72..43d49178 100644 --- a/benchmarks/Dapper.Tests.Performance/Linq2DB/Linq2DBContext.cs +++ b/benchmarks/Dapper.Tests.Performance/Linq2DB/Linq2DBContext.cs @@ -1,10 +1,9 @@ using LinqToDB; -using Microsoft.EntityFrameworkCore; namespace Dapper.Tests.Performance.Linq2Db { public class Linq2DBContext : LinqToDB.Data.DataConnection { - public ITable Posts => GetTable(); + public ITable Posts => this.GetTable(); } } diff --git a/tests/Dapper.Tests/WrappedReaderTests.cs b/tests/Dapper.Tests/WrappedReaderTests.cs index 0bdf48b0..7f884f42 100644 --- a/tests/Dapper.Tests/WrappedReaderTests.cs +++ b/tests/Dapper.Tests/WrappedReaderTests.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections; using System.Data; using System.Data.Common; @@ -46,7 +46,10 @@ private class DummyDbCommand : DbCommand public override int ExecuteNonQuery() => throw new NotSupportedException(); public override object ExecuteScalar() => throw new NotSupportedException(); public override void Prepare() => throw new NotSupportedException(); - public override string CommandText { get; set; } + +#pragma warning disable CS8765 // nullability of value + public override string CommandText { get; set; } = ""; +#pragma warning restore CS8765 // nullability of value public override int CommandTimeout { get; set; } public override CommandType CommandType { get; set; } public override UpdateRowSource UpdatedRowSource { get; set; }