mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 09:15:27 +08:00 
			
		
		
		
	- 优化 SetSource 机制不更新主键字段;
This commit is contained in:
		@@ -650,6 +650,7 @@ namespace FreeSql.Internal.CommonProvider
 | 
			
		||||
                var colidx = 0;
 | 
			
		||||
                foreach (var col in _table.Columns.Values)
 | 
			
		||||
                {
 | 
			
		||||
                    if (col.Attribute.IsPrimary) continue;
 | 
			
		||||
                    if (col.Attribute.IsIdentity == false && col.Attribute.IsVersion == false && _ignore.ContainsKey(col.Attribute.Name) == false)
 | 
			
		||||
                    {
 | 
			
		||||
                        if (colidx > 0) sb.Append(", ");
 | 
			
		||||
@@ -687,6 +688,7 @@ namespace FreeSql.Internal.CommonProvider
 | 
			
		||||
                var colidx = 0;
 | 
			
		||||
                foreach (var col in _table.Columns.Values)
 | 
			
		||||
                {
 | 
			
		||||
                    if (col.Attribute.IsPrimary) continue;
 | 
			
		||||
                    if (col.Attribute.IsIdentity == false && col.Attribute.IsVersion == false && _ignore.ContainsKey(col.Attribute.Name) == false)
 | 
			
		||||
                    {
 | 
			
		||||
                        if (colidx > 0) sb.Append(", ");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user