@@ -42,7 +42,7 @@ public SQLiteDataAdapter CreateAdapter(SQLiteCommand command)
4242 /// </summary>
4343 /// <param name="tableName">The name of the table.</param>
4444 /// <param name="fields">The fields to select.</param>
45- /// <param name="cancellationToken">A token to monitor for cancellation requests .</param>
45+ /// <param name="cancellationToken">A token to observe while waiting to acquire the connection lock .</param>
4646 /// <returns>A table containing the selected data.</returns>
4747 public DataTable Select ( string tableName , IEnumerable < string > fields , CancellationToken cancellationToken = default )
4848 {
@@ -73,7 +73,7 @@ public DataTable Select(string tableName, IEnumerable<string> fields, string? ex
7373 /// <param name="tableName">The name of the table.</param>
7474 /// <param name="fields">The fields to select.</param>
7575 /// <param name="expr">An optional SQL expression appended to the command.</param>
76- /// <param name="cancellationToken">A token to monitor for cancellation requests .</param>
76+ /// <param name="cancellationToken">A token to observe while waiting to acquire the connection lock .</param>
7777 /// <param name="parameters">The parameters to add to the command.</param>
7878 /// <returns>A table containing the selected data.</returns>
7979 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
@@ -110,7 +110,7 @@ public DataTable Select(string sql, params SQLiteParameter[] parameters)
110110 /// Executes the specified query and returns the selected data.
111111 /// </summary>
112112 /// <param name="sql">The SQL statement to execute.</param>
113- /// <param name="cancellationToken">A token to monitor for cancellation requests .</param>
113+ /// <param name="cancellationToken">A token to observe while waiting to acquire the connection lock .</param>
114114 /// <param name="parameters">The parameters to add to the command.</param>
115115 /// <returns>A table containing the selected data.</returns>
116116 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
@@ -131,7 +131,7 @@ public DataTable Select(string sql, CancellationToken cancellationToken, params
131131 /// Executes the specified command and returns the selected data.
132132 /// </summary>
133133 /// <param name="command">The SQLite command to execute.</param>
134- /// <param name="cancellationToken">A token to monitor for cancellation requests .</param>
134+ /// <param name="cancellationToken">A token to observe while waiting to acquire the connection lock .</param>
135135 /// <returns>A table containing the selected data.</returns>
136136 public DataTable Select ( SQLiteCommand command , CancellationToken cancellationToken = default )
137137 {
@@ -162,7 +162,7 @@ public DataTable Select(SQLiteCommand command, CancellationToken cancellationTok
162162 /// </summary>
163163 /// <param name="tableName">The name of the table.</param>
164164 /// <param name="fields">The fields to select.</param>
165- /// <param name="cancellationToken">A token to monitor for cancellation requests .</param>
165+ /// <param name="cancellationToken">A token to observe while waiting to acquire the connection lock .</param>
166166 /// <returns>
167167 /// The configured data adapter and selected data table.
168168 /// The caller is responsible for disposing the returned adapter.
@@ -178,7 +178,7 @@ public DataTable Select(SQLiteCommand command, CancellationToken cancellationTok
178178 /// <param name="tableName">The name of the table.</param>
179179 /// <param name="fields">The fields to select.</param>
180180 /// <param name="generateCommands"><see langword="true"/> to generate insert, update, and delete commands; otherwise, <see langword="false"/>.</param>
181- /// <param name="cancellationToken">A token to monitor for cancellation requests .</param>
181+ /// <param name="cancellationToken">A token to observe while waiting to acquire the connection lock .</param>
182182 /// <returns>
183183 /// The configured data adapter and selected data table.
184184 /// The caller is responsible for disposing the returned adapter.
@@ -215,7 +215,7 @@ public DataTable Select(SQLiteCommand command, CancellationToken cancellationTok
215215 /// <param name="tableName">The name of the table.</param>
216216 /// <param name="fields">The fields to select.</param>
217217 /// <param name="expr">An optional SQL expression appended to the command.</param>
218- /// <param name="cancellationToken">A token to monitor for cancellation requests .</param>
218+ /// <param name="cancellationToken">A token to observe while waiting to acquire the connection lock .</param>
219219 /// <param name="parameters">The parameters to add to the command.</param>
220220 /// <returns>
221221 /// The configured data adapter and selected data table.
@@ -260,7 +260,7 @@ public DataTable Select(SQLiteCommand command, CancellationToken cancellationTok
260260 /// <param name="fields">The fields to select.</param>
261261 /// <param name="expr">An optional SQL expression appended to the command.</param>
262262 /// <param name="generateCommands"><see langword="true"/> to generate insert, update, and delete commands; otherwise, <see langword="false"/>.</param>
263- /// <param name="cancellationToken">A token to monitor for cancellation requests .</param>
263+ /// <param name="cancellationToken">A token to observe while waiting to acquire the connection lock .</param>
264264 /// <param name="parameters">The parameters to add to the command.</param>
265265 /// <returns>
266266 /// The configured data adapter and selected data table.
@@ -302,7 +302,7 @@ public DataTable Select(SQLiteCommand command, CancellationToken cancellationTok
302302 /// Executes the specified query and creates an adapter that can update the returned data.
303303 /// </summary>
304304 /// <param name="sql">The SQL statement to execute.</param>
305- /// <param name="cancellationToken">A token to monitor for cancellation requests .</param>
305+ /// <param name="cancellationToken">A token to observe while waiting to acquire the connection lock .</param>
306306 /// <param name="parameters">The parameters to add to the command.</param>
307307 /// <returns>
308308 /// The configured data adapter and selected data table.
@@ -343,7 +343,7 @@ public DataTable Select(SQLiteCommand command, CancellationToken cancellationTok
343343 /// </summary>
344344 /// <param name="sql">The SQL statement to execute.</param>
345345 /// <param name="generateCommands"><see langword="true"/> to generate insert, update, and delete commands; otherwise, <see langword="false"/>.</param>
346- /// <param name="cancellationToken">A token to monitor for cancellation requests .</param>
346+ /// <param name="cancellationToken">A token to observe while waiting to acquire the connection lock .</param>
347347 /// <param name="parameters">The parameters to add to the command.</param>
348348 /// <returns>
349349 /// The configured data adapter and selected data table.
@@ -366,7 +366,7 @@ public DataTable Select(SQLiteCommand command, CancellationToken cancellationTok
366366 /// Executes the specified command and creates an adapter that can update the returned data.
367367 /// </summary>
368368 /// <param name="command">The SQLite command to execute.</param>
369- /// <param name="cancellationToken">A token to monitor for cancellation requests .</param>
369+ /// <param name="cancellationToken">A token to observe while waiting to acquire the connection lock .</param>
370370 /// <returns>
371371 /// The configured data adapter and selected data table.
372372 /// The caller is responsible for disposing the returned adapter.
@@ -382,7 +382,7 @@ public DataTable Select(SQLiteCommand command, CancellationToken cancellationTok
382382 /// </summary>
383383 /// <param name="command">The SQLite command to execute.</param>
384384 /// <param name="generateCommands"><see langword="true"/> to generate insert, update, and delete commands; otherwise, <see langword="false"/>.</param>
385- /// <param name="cancellationToken">A token to monitor for cancellation requests .</param>
385+ /// <param name="cancellationToken">A token to observe while waiting to acquire the connection lock .</param>
386386 /// <returns>
387387 /// The configured data adapter and selected data table.
388388 /// The caller is responsible for disposing the returned adapter.
@@ -429,14 +429,14 @@ public DataTable Select(SQLiteCommand command, CancellationToken cancellationTok
429429 /// </summary>
430430 /// <param name="adapter">The data adapter used to retrieve data.</param>
431431 /// <param name="table">The data table to fill.</param>
432- /// <param name="cancellationToken">A token to monitor for cancellation requests .</param>
432+ /// <param name="cancellationToken">A token to observe while waiting to acquire the connection lock .</param>
433433 public void Fill ( SQLiteDataAdapter adapter , DataTable table , CancellationToken cancellationToken = default )
434434 {
435435 ArgumentNullException . ThrowIfNull ( adapter ) ;
436436 ArgumentNullException . ThrowIfNull ( table ) ;
437437 cancellationToken . ThrowIfCancellationRequested ( ) ;
438438
439- AcquireLock ( ( ) => adapter . Fill ( table ) , cancellationToken ) ;
439+ AcquireLock ( static state => state . Adapter . Fill ( state . Table ) , ( Adapter : adapter , Table : table ) , cancellationToken ) ;
440440 }
441441
442442 #endregion
@@ -448,7 +448,7 @@ public void Fill(SQLiteDataAdapter adapter, DataTable table, CancellationToken c
448448 /// </summary>
449449 /// <param name="adapter">The data adapter used to update the database.</param>
450450 /// <param name="table">The data table containing the changes.</param>
451- /// <param name="cancellationToken">A token to monitor for cancellation requests .</param>
451+ /// <param name="cancellationToken">A token to observe while waiting to acquire the connection lock .</param>
452452 /// <returns>The number of rows successfully updated.</returns>
453453 public int Update ( SQLiteDataAdapter adapter , DataTable table , CancellationToken cancellationToken = default )
454454 {
@@ -457,7 +457,7 @@ public int Update(SQLiteDataAdapter adapter, DataTable table, CancellationToken
457457 cancellationToken . ThrowIfCancellationRequested ( ) ;
458458
459459 // Update requires a valid UpdateCommand when passed a DataRow collection with modified rows.
460- return AcquireLock ( ( ) => adapter . Update ( table ) , cancellationToken ) ;
460+ return AcquireLock ( static state => state . Adapter . Update ( state . Table ) , ( Adapter : adapter , Table : table ) , cancellationToken ) ;
461461 }
462462
463463 #endregion
0 commit comments