@@ -34,13 +34,7 @@ public SQLiteDataAdapter CreateAdapter(SQLiteCommand command)
3434 #region Select
3535
3636 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
37- public DataTable Select ( string tableName , IEnumerable < string > fields , string ? expr , params SQLiteParameter [ ] parameters )
38- {
39- return Select ( tableName , fields , expr , default , parameters ) ;
40- }
41-
42- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
43- public DataTable Select ( string tableName , IEnumerable < string > fields , string ? expr , CancellationToken cancellationToken , params SQLiteParameter [ ] parameters )
37+ public DataTable Select ( string tableName , IEnumerable < string > fields , string ? expr = null , CancellationToken cancellationToken = default , params SQLiteParameter [ ] parameters )
4438 {
4539#if NET8_0_OR_GREATER
4640 ArgumentException . ThrowIfNullOrEmpty ( tableName ) ;
@@ -51,13 +45,7 @@ public DataTable Select(string tableName, IEnumerable<string> fields, string? ex
5145 }
5246
5347 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
54- public DataTable Select ( string sql , params SQLiteParameter [ ] parameters )
55- {
56- return Select ( sql , default , parameters ) ;
57- }
58-
59- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
60- public DataTable Select ( string sql , CancellationToken cancellationToken , params SQLiteParameter [ ] parameters )
48+ public DataTable Select ( string sql , CancellationToken cancellationToken = default , params SQLiteParameter [ ] parameters )
6149 {
6250#if NET8_0_OR_GREATER
6351 ArgumentException . ThrowIfNullOrEmpty ( sql ) ;
@@ -67,13 +55,7 @@ public DataTable Select(string sql, CancellationToken cancellationToken, params
6755 return Select ( CreateCommand ( sql , parameters ) , cancellationToken ) ;
6856 }
6957
70- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
71- public DataTable Select ( SQLiteCommand command )
72- {
73- return Select ( command , default ) ;
74- }
75-
76- public DataTable Select ( SQLiteCommand command , CancellationToken cancellationToken )
58+ public DataTable Select ( SQLiteCommand command , CancellationToken cancellationToken = default )
7759 {
7860#if NET6_0_OR_GREATER
7961 ArgumentNullException . ThrowIfNull ( command ) ;
@@ -100,13 +82,7 @@ public DataTable Select(SQLiteCommand command, CancellationToken cancellationTok
10082 #region SelectForUpdate
10183
10284 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
103- public ( SQLiteDataAdapter , DataTable ) SelectForUpdate ( string tableName , IEnumerable < string > fields , string ? expr , bool generateCommands , params SQLiteParameter [ ] parameters )
104- {
105- return SelectForUpdate ( tableName , fields , expr , generateCommands , default , parameters ) ;
106- }
107-
108- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
109- public ( SQLiteDataAdapter , DataTable ) SelectForUpdate ( string tableName , IEnumerable < string > fields , string ? expr , bool generateCommands , CancellationToken cancellationToken , params SQLiteParameter [ ] parameters )
85+ public ( SQLiteDataAdapter , DataTable ) SelectForUpdate ( string tableName , IEnumerable < string > fields , string ? expr = null , bool generateCommands = true , CancellationToken cancellationToken = default , params SQLiteParameter [ ] parameters )
11086 {
11187#if NET8_0_OR_GREATER
11288 ArgumentException . ThrowIfNullOrEmpty ( tableName ) ;
@@ -117,13 +93,7 @@ public DataTable Select(SQLiteCommand command, CancellationToken cancellationTok
11793 }
11894
11995 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
120- public ( SQLiteDataAdapter , DataTable ) SelectForUpdate ( string sql , bool generateCommands , params SQLiteParameter [ ] parameters )
121- {
122- return SelectForUpdate ( sql , generateCommands , default , parameters ) ;
123- }
124-
125- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
126- public ( SQLiteDataAdapter , DataTable ) SelectForUpdate ( string sql , bool generateCommands , CancellationToken cancellationToken , params SQLiteParameter [ ] parameters )
96+ public ( SQLiteDataAdapter , DataTable ) SelectForUpdate ( string sql , bool generateCommands = true , CancellationToken cancellationToken = default , params SQLiteParameter [ ] parameters )
12797 {
12898#if NET8_0_OR_GREATER
12999 ArgumentException . ThrowIfNullOrEmpty ( sql ) ;
@@ -133,13 +103,7 @@ public DataTable Select(SQLiteCommand command, CancellationToken cancellationTok
133103 return SelectForUpdate ( CreateCommand ( sql , parameters ) , generateCommands , cancellationToken ) ;
134104 }
135105
136- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
137- public ( SQLiteDataAdapter , DataTable ) SelectForUpdate ( SQLiteCommand command , bool generateCommands )
138- {
139- return SelectForUpdate ( command , generateCommands , default ) ;
140- }
141-
142- public ( SQLiteDataAdapter , DataTable ) SelectForUpdate ( SQLiteCommand command , bool generateCommands , CancellationToken cancellationToken )
106+ public ( SQLiteDataAdapter , DataTable ) SelectForUpdate ( SQLiteCommand command , bool generateCommands = true , CancellationToken cancellationToken = default )
143107 {
144108#if NET6_0_OR_GREATER
145109 ArgumentNullException . ThrowIfNull ( command ) ;
@@ -178,13 +142,7 @@ public DataTable Select(SQLiteCommand command, CancellationToken cancellationTok
178142
179143 #region Fill
180144
181- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
182- public void Fill ( SQLiteDataAdapter adapter , DataTable table )
183- {
184- Fill ( adapter , table , default ) ;
185- }
186-
187- public void Fill ( SQLiteDataAdapter adapter , DataTable table , CancellationToken cancellationToken )
145+ public void Fill ( SQLiteDataAdapter adapter , DataTable table , CancellationToken cancellationToken = default )
188146 {
189147#if NET6_0_OR_GREATER
190148 ArgumentNullException . ThrowIfNull ( adapter ) ;
@@ -201,12 +159,7 @@ public void Fill(SQLiteDataAdapter adapter, DataTable table, CancellationToken c
201159
202160 #region Update
203161
204- public int Update ( SQLiteDataAdapter adapter , DataTable table )
205- {
206- return Update ( adapter , table , default ) ;
207- }
208-
209- public int Update ( SQLiteDataAdapter adapter , DataTable table , CancellationToken cancellationToken )
162+ public int Update ( SQLiteDataAdapter adapter , DataTable table , CancellationToken cancellationToken = default )
210163 {
211164#if NET6_0_OR_GREATER
212165 ArgumentNullException . ThrowIfNull ( adapter ) ;
0 commit comments