mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 09:15:27 +08:00 
			
		
		
		
	修复批量插入/更新大量数据时,未使用NoneParameter,会导致部分未执行的bug;
This commit is contained in:
		@@ -2,7 +2,7 @@
 | 
			
		||||
 | 
			
		||||
	<PropertyGroup>
 | 
			
		||||
		<TargetFrameworks>netstandard2.0;net45</TargetFrameworks>
 | 
			
		||||
		<Version>0.6.8</Version>
 | 
			
		||||
		<Version>0.6.9</Version>
 | 
			
		||||
		<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
 | 
			
		||||
		<Authors>YeXiangQin</Authors>
 | 
			
		||||
		<Description>FreeSql is the most convenient ORM in dotnet. It supports Mysql, Postgresql, SqlServer, Oracle and Sqlite.</Description>
 | 
			
		||||
 
 | 
			
		||||
@@ -91,7 +91,7 @@ namespace FreeSql.Internal.CommonProvider {
 | 
			
		||||
				var pamTotal = colSum * _source.Count;
 | 
			
		||||
				if (pamTotal < parameterLimit) return new[] { _source };
 | 
			
		||||
 | 
			
		||||
				var execCount = (int)Math.Ceiling(1.0 * pamTotal / parameterLimit);
 | 
			
		||||
				var execCount = (int)Math.Ceiling(1.0 * pamTotal / takeMax / colSum);
 | 
			
		||||
				var ret = new List<T1>[execCount];
 | 
			
		||||
				for (var a = 0; a < execCount; a++) {
 | 
			
		||||
					var subSource = new List<T1>();
 | 
			
		||||
 
 | 
			
		||||
@@ -96,7 +96,7 @@ namespace FreeSql.Internal.CommonProvider {
 | 
			
		||||
				var pamTotal = colSum * _source.Count;
 | 
			
		||||
				if (pamTotal < parameterLimit) return new[] { _source };
 | 
			
		||||
 | 
			
		||||
				var execCount = (int)Math.Ceiling(1.0 * pamTotal / parameterLimit);
 | 
			
		||||
				var execCount = (int)Math.Ceiling(1.0 * pamTotal / takeMax / colSum);
 | 
			
		||||
				var ret = new List<T1>[execCount];
 | 
			
		||||
				for (var a = 0; a < execCount; a++) {
 | 
			
		||||
					var subSource = new List<T1>();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user