mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	- 修复 BaseRepository Delete 方法未正确返回影响的行值 #373;
This commit is contained in:
		@@ -465,7 +465,7 @@ namespace FreeSql
 | 
			
		||||
            if (dels.Any() == false) return 0;
 | 
			
		||||
            var affrows = this.OrmDelete(dels.Select(a => a.Value)).ExecuteAffrows();
 | 
			
		||||
            _db._entityChangeReport.AddRange(dels.Select(a => new DbContext.EntityChangeReport.ChangeInfo { Object = a.Value, Type = DbContext.EntityChangeType.Delete }));
 | 
			
		||||
            return Math.Max(dels.Length, affrows);
 | 
			
		||||
            return affrows; //https://github.com/dotnetcore/FreeSql/issues/373
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        /// <summary>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user