This commit is contained in:
2881099
2025-02-15 11:49:21 +08:00
parent 9bbefe7d86
commit 1d8c0e8729

View File

@@ -20,7 +20,7 @@ public static partial class FreeSqlSqliteGlobalExtensions
public static void ExecuteSqliteBulkInsert<T>(this IInsert<T> that) where T : class public static void ExecuteSqliteBulkInsert<T>(this IInsert<T> that) where T : class
{ {
var insert = that as FreeSql.Sqlite.Curd.SqliteInsert<T>; var insert = that as FreeSql.Sqlite.Curd.SqliteInsert<T>;
if (insert == null) throw new Exception(CoreErrorStrings.S_Features_Unique("BulkInsert", "Sqlite")); if (insert == null) throw new Exception(CoreErrorStrings.S_Features_Unique("ExecuteSqliteBulkInsert", "Sqlite"));
var dt = that.ToDataTable(); var dt = that.ToDataTable();
if (dt.Rows.Count == 0) return; if (dt.Rows.Count == 0) return;