@@ -8,7 +8,7 @@ public static void ExecuteInTransaction(this SQLiteDbConnection connection, Acti
88 {
99 Debug . Assert ( connection is not null , $ "{ nameof ( connection ) } is null") ;
1010 Debug . Assert ( action is not null , $ "{ nameof ( action ) } is null") ;
11- #if NET6_0_OR_GREATER
11+ #if NET
1212 ArgumentNullException . ThrowIfNull ( connection ) ;
1313 ArgumentNullException . ThrowIfNull ( action ) ;
1414#else
@@ -49,7 +49,7 @@ public static T ExecuteInTransaction<T>(this SQLiteDbConnection connection, Func
4949 {
5050 Debug . Assert ( connection is not null , $ "{ nameof ( connection ) } is null") ;
5151 Debug . Assert ( action is not null , $ "{ nameof ( action ) } is null") ;
52- #if NET6_0_OR_GREATER
52+ #if NET
5353 ArgumentNullException . ThrowIfNull ( connection ) ;
5454 ArgumentNullException . ThrowIfNull ( action ) ;
5555#else
@@ -90,7 +90,7 @@ public static ICollection<string> GetTableColumns(this SQLiteDbConnection connec
9090 {
9191 Debug . Assert ( connection is not null , $ "{ nameof ( connection ) } is null") ;
9292 Debug . Assert ( ! string . IsNullOrEmpty ( tableName ) , $ "{ nameof ( tableName ) } is null or empty") ;
93- #if NET6_0_OR_GREATER
93+ #if NET
9494 ArgumentNullException . ThrowIfNull ( connection ) ;
9595#else
9696 Throw . IfNull ( connection ) ;
@@ -117,7 +117,7 @@ public static DataTable GetTableSchema(this SQLiteDbConnection connection, strin
117117 {
118118 Debug . Assert ( connection is not null , $ "{ nameof ( connection ) } is null") ;
119119 Debug . Assert ( ! string . IsNullOrEmpty ( tableName ) , $ "{ nameof ( tableName ) } is null or empty") ;
120- #if NET6_0_OR_GREATER
120+ #if NET
121121 ArgumentNullException . ThrowIfNull ( connection ) ;
122122#else
123123 Throw . IfNull ( connection ) ;
@@ -135,7 +135,7 @@ public static DataTable GetTableSchema(this SQLiteDbConnection connection, strin
135135 public static ICollection < string > GetAllTables ( this SQLiteDbConnection connection , CancellationToken cancellationToken = default )
136136 {
137137 Debug . Assert ( connection is not null , $ "{ nameof ( connection ) } is null") ;
138- #if NET6_0_OR_GREATER
138+ #if NET
139139 ArgumentNullException . ThrowIfNull ( connection ) ;
140140#else
141141 Throw . IfNull ( connection ) ;
@@ -156,7 +156,7 @@ void Read(SQLiteDataReader reader)
156156 public static ICollection < string > GetAllViews ( this SQLiteDbConnection connection , CancellationToken cancellationToken = default )
157157 {
158158 Debug . Assert ( connection is not null , $ "{ nameof ( connection ) } is null") ;
159- #if NET6_0_OR_GREATER
159+ #if NET
160160 ArgumentNullException . ThrowIfNull ( connection ) ;
161161#else
162162 Throw . IfNull ( connection ) ;
@@ -178,7 +178,7 @@ public static ICollection<string> GetTableIndexes(this SQLiteDbConnection connec
178178 {
179179 Debug . Assert ( connection is not null , $ "{ nameof ( connection ) } is null") ;
180180 Debug . Assert ( ! string . IsNullOrEmpty ( tableName ) , $ "{ nameof ( tableName ) } is null or empty") ;
181- #if NET6_0_OR_GREATER
181+ #if NET
182182 ArgumentNullException . ThrowIfNull ( connection ) ;
183183#else
184184 Throw . IfNull ( connection ) ;
@@ -204,7 +204,7 @@ public static bool IsTableEmpty(this SQLiteDbConnection connection, string table
204204 {
205205 Debug . Assert ( connection is not null , $ "{ nameof ( connection ) } is null") ;
206206 Debug . Assert ( ! string . IsNullOrEmpty ( tableName ) , $ "{ nameof ( tableName ) } is null or empty") ;
207- #if NET6_0_OR_GREATER
207+ #if NET
208208 ArgumentNullException . ThrowIfNull ( connection ) ;
209209#else
210210 Throw . IfNull ( connection ) ;
@@ -222,7 +222,7 @@ public static bool IsTableExist(this SQLiteDbConnection connection, string table
222222 {
223223 Debug . Assert ( connection is not null , $ "{ nameof ( connection ) } is null") ;
224224 Debug . Assert ( ! string . IsNullOrEmpty ( tableName ) , $ "{ nameof ( tableName ) } is null or empty") ;
225- #if NET6_0_OR_GREATER
225+ #if NET
226226 ArgumentNullException . ThrowIfNull ( connection ) ;
227227#else
228228 Throw . IfNull ( connection ) ;
@@ -242,7 +242,7 @@ public static bool IsTableIndexExist(this SQLiteDbConnection connection, string
242242 Debug . Assert ( connection is not null , $ "{ nameof ( connection ) } is null") ;
243243 Debug . Assert ( ! string . IsNullOrEmpty ( tableName ) , $ "{ nameof ( tableName ) } is null or empty") ;
244244 Debug . Assert ( ! string . IsNullOrEmpty ( indexName ) , $ "{ nameof ( indexName ) } is null or empty") ;
245- #if NET6_0_OR_GREATER
245+ #if NET
246246 ArgumentNullException . ThrowIfNull ( connection ) ;
247247#else
248248 Throw . IfNull ( connection ) ;
@@ -266,7 +266,7 @@ public static bool IsTriggerExist(this SQLiteDbConnection connection, string tri
266266 {
267267 Debug . Assert ( connection is not null , $ "{ nameof ( connection ) } is null") ;
268268 Debug . Assert ( ! string . IsNullOrEmpty ( triggerName ) , $ "{ nameof ( triggerName ) } is null or empty") ;
269- #if NET6_0_OR_GREATER
269+ #if NET
270270 ArgumentNullException . ThrowIfNull ( connection ) ;
271271#else
272272 Throw . IfNull ( connection ) ;
@@ -285,7 +285,7 @@ public static bool IsViewExist(this SQLiteDbConnection connection, string viewNa
285285 {
286286 Debug . Assert ( connection is not null , $ "{ nameof ( connection ) } is null") ;
287287 Debug . Assert ( ! string . IsNullOrEmpty ( viewName ) , $ "{ nameof ( viewName ) } is null or empty") ;
288- #if NET6_0_OR_GREATER
288+ #if NET
289289 ArgumentNullException . ThrowIfNull ( connection ) ;
290290#else
291291 Throw . IfNull ( connection ) ;
0 commit comments