Skip to content

Commit

Permalink
Update SQLite.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
de-gall authored Sep 29, 2024
1 parent 222b65c commit 7294302
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/SQLite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ CreateTablesResult CreateTables<T, T2, T3, T4, T5> (CreateFlags createFlags = Cr
int InsertAll (IEnumerable objects, Type objType, bool runInTransaction = true);
int InsertOrReplace (object obj);
int InsertOrReplace (object obj, Type objType);
int InsertOrReplaceAll (IEnumerable objects, bool runInTransaction = true);
int InsertOrReplaceAll (IEnumerable objects, Type objType, bool runInTransaction = true);
int InsertOrReplaceAll(IEnumerable objects, bool runInTransaction = true);
int InsertOrReplaceAll(IEnumerable objects, Type objType, bool runInTransaction = true);
List<T> Query<T> (string query, params object[] args) where T : new();
List<object> Query (TableMapping map, string query, params object[] args);
List<T> QueryScalars<T> (string query, params object[] args);
Expand Down Expand Up @@ -1745,14 +1745,14 @@ public int InsertAll (System.Collections.IEnumerable objects, Type objType, bool
/// <returns>
/// The number of rows added to the table.
/// </returns>
public int InsertOrReplaceAll (IEnumerable objects, bool runInTransaction = true)
public int InsertOrReplaceAll(IEnumerable objects, bool runInTransaction = true)
{
var c = 0;
if (runInTransaction) {
RunInTransaction (() => { c += objects.Cast<object> ().Sum (InsertOrReplace); });
RunInTransaction(() => { c += objects.Cast<object>().Sum(InsertOrReplace); });
}
else {
c += objects.Cast<object> ().Sum (InsertOrReplace);
c += objects.Cast<object>().Sum(InsertOrReplace);
}
return c;
}
Expand All @@ -1772,14 +1772,14 @@ public int InsertOrReplaceAll (IEnumerable objects, bool runInTransaction = true
/// <returns>
/// The number of rows added to the table.
/// </returns>
public int InsertOrReplaceAll (IEnumerable objects, Type objType, bool runInTransaction = true)
public int InsertOrReplaceAll(IEnumerable objects, Type objType, bool runInTransaction = true)
{
var c = 0;
if (runInTransaction) {
RunInTransaction (() => { c += objects.Cast<object> ().Sum (r => InsertOrReplace (r, objType)); });
RunInTransaction(() => { c += objects.Cast<object>().Sum(r => InsertOrReplace(r, objType)); });
}
else {
c += objects.Cast<object> ().Sum (r => InsertOrReplace (r, objType));
c += objects.Cast<object>().Sum(r => InsertOrReplace(r, objType));
}
return c;
}
Expand Down

0 comments on commit 7294302

Please sign in to comment.