File tree Expand file tree Collapse file tree 3 files changed +3
-28
lines changed Expand file tree Collapse file tree 3 files changed +3
-28
lines changed Original file line number Diff line number Diff line change @@ -332,7 +332,6 @@ public virtual void AdjustCommand(DbCommand command)
332
332
#if NET6_0_OR_GREATER
333
333
public void PrepareBatch ( DbBatch batch )
334
334
{
335
- AdjustBatch ( batch ) ;
336
335
OnBeforePrepare ( batch ) ;
337
336
338
337
if ( SupportsPreparingCommands && prepareSql )
@@ -350,20 +349,6 @@ protected virtual void OnBeforePrepare(DbBatch command)
350
349
{
351
350
}
352
351
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
-
367
352
public virtual DbBatch CreateBatch ( )
368
353
{
369
354
throw new NotImplementedException ( ) ;
Original file line number Diff line number Diff line change @@ -177,16 +177,6 @@ public interface IDriver
177
177
/// </summary>
178
178
bool CanCreateBatch => false ;
179
179
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
-
190
180
/// <summary>
191
181
/// Prepare the <paramref name="dbBatch" /> by calling <see cref="DbBatch.Prepare()" />.
192
182
/// May be a no-op if the driver does not support preparing commands, or for any other reason.
Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ public abstract class ReflectionBasedDriver : DriverBase
8
8
{
9
9
protected const string ReflectionTypedProviderExceptionMessageTemplate =
10
10
"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." ;
14
14
15
15
private readonly IDriveConnectionCommandProvider connectionCommandProvider ;
16
16
You can’t perform that action at this time.
0 commit comments