0

BLToolkit has InsertBatch method to insert a set of objects.

What is the meaning of 'maxBatchSize' parameter? I was not able to find any documentation on that, neither that clear from source code.

Please advise.

Thanks.

P.S. I believe that is parameter which tells what amount of records/objects should be inserted per query, but why does it have 'max' prefix?

4

1 回答 1

1

maxBatchSize是允许在一个 SQL 插入命令中插入的最大对象数。在以下情况下,每个 SQL 命令插入的实际对象数可能会更少:

  • 您传递的对象数量较少,
  • 或每个 SQL 命令的最大参数数,因为对象成员被转换为参数
于 2015-01-06T22:14:19.610 回答