Browse Source

Synchronization code

pull/31/head
sunkaixuan 2 years ago
parent
commit
d9ee0e7f2d
  1. 11
      Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleInsertBuilder.cs

11
Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleInsertBuilder.cs

@ -58,7 +58,12 @@ namespace SqlSugar
}
else
{
string result = Big(identities, groupList, columnsString);
var pageSize = bigSize;
if (pageSize > 100)
{
pageSize = 100;
}
string result = Big(identities, groupList, columnsString, pageSize);
return result;
}
}
@ -87,9 +92,9 @@ namespace SqlSugar
return bigSize;
}
private string Big(List<EntityColumnInfo> identities, List<IGrouping<int, DbColumnInfo>> groupList, string columnsString)
private string Big(List<EntityColumnInfo> identities, List<IGrouping<int, DbColumnInfo>> groupList, string columnsString, int pageSize)
{
this.Context.Utilities.PageEach(groupList, 100, groupListPasge =>
this.Context.Utilities.PageEach(groupList, pageSize, groupListPasge =>
{
this.Parameters = new List<SugarParameter>();
var sql = Small(identities, groupListPasge, columnsString);

Loading…
Cancel
Save