From 244598664f4030b16ab3fe20165337ced0044b93 Mon Sep 17 00:00:00 2001 From: Shay Rojansky Date: Tue, 28 Apr 2026 11:03:01 +0200 Subject: [PATCH] Sync to EF 11.0.0-preview.5.26227.124 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- Directory.Packages.props | 6 +++--- .../TestUtilities/TestRelationalCommandBuilderFactory.cs | 4 ---- test/EFCore.PG.FunctionalTests/TransactionNpgsqlTest.cs | 7 ------- 3 files changed, 3 insertions(+), 14 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 2475df9db3..ab4c1b0dfc 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -1,8 +1,8 @@ - 11.0.0-preview.4.26224.122 - 11.0.0-preview.4.26224.122 - 11.0.0-preview.4.26224.122 + 11.0.0-preview.5.26227.124 + 11.0.0-preview.5.26227.124 + 11.0.0-preview.5.26227.124 10.0.0 diff --git a/test/EFCore.PG.FunctionalTests/TestUtilities/TestRelationalCommandBuilderFactory.cs b/test/EFCore.PG.FunctionalTests/TestUtilities/TestRelationalCommandBuilderFactory.cs index 3a9732e376..87da169dc1 100644 --- a/test/EFCore.PG.FunctionalTests/TestUtilities/TestRelationalCommandBuilderFactory.cs +++ b/test/EFCore.PG.FunctionalTests/TestUtilities/TestRelationalCommandBuilderFactory.cs @@ -34,10 +34,6 @@ public IRelationalCommandBuilder RemoveParameterAt(int index) return this; } - [Obsolete("Code trying to add parameter should add type mapped parameter using TypeMappingSource directly.")] - public IRelationalTypeMappingSource TypeMappingSource - => Dependencies.TypeMappingSource; - public IRelationalCommand Build() => new TestRelationalCommand( Dependencies, diff --git a/test/EFCore.PG.FunctionalTests/TransactionNpgsqlTest.cs b/test/EFCore.PG.FunctionalTests/TransactionNpgsqlTest.cs index 5fd149f03b..b921844aa3 100644 --- a/test/EFCore.PG.FunctionalTests/TransactionNpgsqlTest.cs +++ b/test/EFCore.PG.FunctionalTests/TransactionNpgsqlTest.cs @@ -11,13 +11,6 @@ public override Task SaveChanges_can_be_used_with_AutoTransactionBehavior_Never( // (see https://github.com/npgsql/npgsql/issues/1307) => Task.CompletedTask; -#pragma warning disable CS0618 // AutoTransactionsEnabled is obsolete - public override Task SaveChanges_can_be_used_with_AutoTransactionsEnabled_false(bool async) - // Npgsql batches the inserts, creating an implicit transaction which fails the test - // (see https://github.com/npgsql/npgsql/issues/1307) - => Task.CompletedTask; -#pragma warning restore CS0618 - protected override DbContext CreateContextWithConnectionString() { var options = Fixture.AddOptions(