Skip to content

Commit

Permalink
[fix]修正BatchUpsert没有设置BatchSize默认值的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed Jul 23, 2024
1 parent d962583 commit ef5e169
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions XCode/Entity/EntityExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -897,8 +897,7 @@ public static Int32 BatchUpsert<T>(this IEnumerable<T> list, BatchOption? option
session.InitData();

var dal = session.Dal;
//dal.CheckDatabase();
//var tableName = dal.Db.FormatTableName(session.TableName);
if (option.BatchSize <= 0) option.BatchSize = dal.GetBatchSize();

var total = list.Count();
var tracer = dal.Tracer ?? DAL.GlobalTracer;
Expand Down

0 comments on commit ef5e169

Please sign in to comment.