@@ -165,11 +165,46 @@ public interface IDriver
165165 DateTime MinDate { get ; }
166166
167167#if NET6_0_OR_GREATER
168+ /// <summary>
169+ /// Create a <see cref="DbBatch"/>
170+ /// </summary>
171+ /// <returns></returns>
172+ /// <exception cref="NotImplementedException"></exception>
168173 DbBatch CreateBatch ( ) => throw new NotImplementedException ( ) ;
174+
175+ /// <summary>
176+ /// Can this driver create <see cref="DbBatch"/>es?
177+ /// </summary>
169178 bool CanCreateBatch => false ;
170179
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>
171188 void AdjustBatch ( DbBatch dbBatch ) => throw new NotImplementedException ( ) ;
189+
190+ /// <summary>
191+ /// Prepare the <paramref name="dbBatch" /> by calling <see cref="DbBatch.Prepare()" />.
192+ /// May be a no-op if the driver does not support preparing commands, or for any other reason.
193+ /// </summary>
194+ /// <param name="dbBatch">The batch.</param>
172195 void PrepareBatch ( DbBatch dbBatch ) => throw new NotImplementedException ( ) ;
196+
197+ /// <summary>
198+ /// Creates (clones) a <see cref="DbBatchCommand"/> from a <see cref="DbCommand"/>,
199+ /// copying its <see cref="DbCommand.CommandText"/>, <see cref="DbCommand.CommandType"/>
200+ /// and all its parameters.
201+ /// The returned <see cref="DbBatchCommand"/> will not be added to <paramref name="dbBatch"/>
202+ /// </summary>
203+ /// <param name="dbBatch"></param>
204+ /// <param name="dbCommand"></param>
205+ /// <returns></returns>
206+ /// <exception cref="NotImplementedException"></exception>
207+ DbBatchCommand CreateDbBatchCommandFromDbCommand ( DbBatch dbBatch , DbCommand dbCommand ) => throw new NotImplementedException ( ) ;
173208#endif
174209 }
175210}
0 commit comments