From 0783a4b2883b09f18e0c2a821aed2253046e943d Mon Sep 17 00:00:00 2001 From: Ivan Maximov Date: Sun, 16 Feb 2025 15:27:53 +0300 Subject: [PATCH] Update DbDataSource.cs I think it's just an oversight when copy-pasting code. --- .../System.Data.Common/src/System/Data/Common/DbDataSource.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libraries/System.Data.Common/src/System/Data/Common/DbDataSource.cs b/src/libraries/System.Data.Common/src/System/Data/Common/DbDataSource.cs index 1f9528ca7e6d4a..566813eb362c14 100644 --- a/src/libraries/System.Data.Common/src/System/Data/Common/DbDataSource.cs +++ b/src/libraries/System.Data.Common/src/System/Data/Common/DbDataSource.cs @@ -561,10 +561,10 @@ public override async ValueTask DisposeAsync() // provide their own connection-less implementation anyway (i.e. interacting with the originating // DbDataSource), so they'd have to override this in any case. public override void Prepare() - => throw ExceptionBuilder.NotSupportedOnDataSourceCommand(); + => throw ExceptionBuilder.NotSupportedOnDataSourceBatch(); public override Task PrepareAsync(CancellationToken cancellationToken = default) - => Task.FromException(ExceptionBuilder.NotSupportedOnDataSourceCommand()); + => Task.FromException(ExceptionBuilder.NotSupportedOnDataSourceBatch()); // The below are incompatible with batches executed directly against DbDataSource, since no DbConnection // is involved at the user API level and the DbBatchWrapper owns the DbConnection.