Skip to content

Commit cdf3a4f

Browse files
committed
Removed AdjustBatch
1 parent 6bc9761 commit cdf3a4f

File tree

3 files changed

+3
-28
lines changed

3 files changed

+3
-28
lines changed

src/NHibernate/Driver/DriverBase.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,6 @@ public virtual void AdjustCommand(DbCommand command)
332332
#if NET6_0_OR_GREATER
333333
public void PrepareBatch(DbBatch batch)
334334
{
335-
AdjustBatch(batch);
336335
OnBeforePrepare(batch);
337336

338337
if (SupportsPreparingCommands && prepareSql)
@@ -350,20 +349,6 @@ protected virtual void OnBeforePrepare(DbBatch command)
350349
{
351350
}
352351

353-
/// <summary>
354-
/// Override to make any adjustments to each DbBatch object before it added to the batcher.
355-
/// </summary>
356-
/// <param name="batch">The batch.</param>
357-
/// <remarks>
358-
/// This method is similar to the <see cref="OnBeforePrepare"/> but, instead be called just before execute the command (that can be a batch)
359-
/// is executed before add each single command to the batcher and before <see cref="OnBeforePrepare"/> .
360-
/// If you have to adjust parameters values/type (when the command is full filled) this is a good place where do it.
361-
/// </remarks>
362-
public virtual void AdjustBatch(DbBatch batch)
363-
{
364-
365-
}
366-
367352
public virtual DbBatch CreateBatch()
368353
{
369354
throw new NotImplementedException();

src/NHibernate/Driver/IDriver.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -177,16 +177,6 @@ public interface IDriver
177177
/// </summary>
178178
bool CanCreateBatch => false;
179179

180-
/// <summary>
181-
/// Make any adjustments to each <see cref="DbBatch"/> object before it is added to the batcher.
182-
/// </summary>
183-
/// <param name="dbBatch">The batch.</param>
184-
/// <remarks>
185-
/// This method should be executed before adding each single batch to the batcher.
186-
/// If you have to adjust parameters values/type (when the command is fullfilled) this is a good place to do it.
187-
/// </remarks>
188-
void AdjustBatch(DbBatch dbBatch) => throw new NotImplementedException();
189-
190180
/// <summary>
191181
/// Prepare the <paramref name="dbBatch" /> by calling <see cref="DbBatch.Prepare()" />.
192182
/// May be a no-op if the driver does not support preparing commands, or for any other reason.

src/NHibernate/Driver/ReflectionBasedDriver.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ public abstract class ReflectionBasedDriver : DriverBase
88
{
99
protected const string ReflectionTypedProviderExceptionMessageTemplate =
1010
"The DbCommand and DbConnection implementation in the assembly {0} could not be found. "
11-
+ "Ensure that the assembly {0} is located in the application directory or in the Global "
12-
+ "Assembly Cache. If the assembly is in the GAC, use <qualifyAssembly/> element in the "
13-
+ "application configuration file to specify the full name of the assembly.";
11+
+ "Ensure that the assembly {0} is located in the application directory or in the Global "
12+
+ "Assembly Cache. If the assembly is in the GAC, use <qualifyAssembly/> element in the "
13+
+ "application configuration file to specify the full name of the assembly.";
1414

1515
private readonly IDriveConnectionCommandProvider connectionCommandProvider;
1616

0 commit comments

Comments
 (0)