mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	- 增加 IInsert/IUpdate BatchProgress 方法处理批量插入/更新时的进度;
This commit is contained in:
		@@ -1,4 +1,5 @@
 | 
			
		||||
using System;
 | 
			
		||||
using FreeSql.Internal.Model;
 | 
			
		||||
using System;
 | 
			
		||||
using System.Collections.Generic;
 | 
			
		||||
using System.Data;
 | 
			
		||||
using System.Data.Common;
 | 
			
		||||
@@ -91,12 +92,19 @@ namespace FreeSql
 | 
			
		||||
        /// Sqlite 5000 999<para></para>
 | 
			
		||||
        /// 若没有事务传入,内部(默认)会自动开启新事务,保证拆包执行的完整性。
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <param name="valuesLimit">指定根据 values 数量拆分执行</param>
 | 
			
		||||
        /// <param name="parameterLimit">指定根据 parameters 数量拆分执行</param>
 | 
			
		||||
        /// <param name="valuesLimit">指定根据 values 上限数量拆分执行</param>
 | 
			
		||||
        /// <param name="parameterLimit">指定根据 parameters 上限数量拆分执行</param>
 | 
			
		||||
        /// <param name="autoTransaction">是否自动开启事务</param>
 | 
			
		||||
        /// <returns></returns>
 | 
			
		||||
        IInsert<T1> BatchOptions(int valuesLimit, int parameterLimit, bool autoTransaction = true);
 | 
			
		||||
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 批量执行时,分批次执行的进度状态
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <param name="callback">批量执行时的回调委托</param>
 | 
			
		||||
        /// <returns></returns>
 | 
			
		||||
        IInsert<T1> BatchProgress(Action<BatchProgressStatus<T1>> callback);
 | 
			
		||||
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 设置表名规则,可用于分库/分表,参数1:默认表名;返回值:新表名;
 | 
			
		||||
        /// </summary>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,5 @@
 | 
			
		||||
using System;
 | 
			
		||||
using FreeSql.Internal.Model;
 | 
			
		||||
using System;
 | 
			
		||||
using System.Collections.Generic;
 | 
			
		||||
using System.Data.Common;
 | 
			
		||||
using System.Linq.Expressions;
 | 
			
		||||
@@ -39,12 +40,19 @@ namespace FreeSql
 | 
			
		||||
        /// Sqlite 200 999<para></para>
 | 
			
		||||
        /// 若没有事务传入,内部(默认)会自动开启新事务,保证拆包执行的完整性。
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <param name="rowsLimit">指定根据 rows 数量拆分执行</param>
 | 
			
		||||
        /// <param name="parameterLimit">指定根据 parameters 数量拆分执行</param>
 | 
			
		||||
        /// <param name="rowsLimit">指定根据 rows 上限数量拆分执行</param>
 | 
			
		||||
        /// <param name="parameterLimit">指定根据 parameters 上限数量拆分执行</param>
 | 
			
		||||
        /// <param name="autoTransaction">是否自动开启事务</param>
 | 
			
		||||
        /// <returns></returns>
 | 
			
		||||
        IUpdate<T1> BatchOptions(int rowsLimit, int parameterLimit, bool autoTransaction = true);
 | 
			
		||||
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 批量执行时,分批次执行的进度状态
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <param name="callback">批量执行时的回调委托</param>
 | 
			
		||||
        /// <returns></returns>
 | 
			
		||||
        IUpdate<T1> BatchProgress(Action<BatchProgressStatus<T1>> callback);
 | 
			
		||||
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 更新数据,设置更新的实体
 | 
			
		||||
        /// </summary>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user