|
@ -15,7 +15,7 @@ namespace SqlSugar |
|
|
sb.AppendLine(string.Join("\r\n", groupList.Select(t => |
|
|
sb.AppendLine(string.Join("\r\n", groupList.Select(t => |
|
|
{ |
|
|
{ |
|
|
var updateTable = string.Format("UPDATE {0} SET", base.GetTableNameStringNoWith); |
|
|
var updateTable = string.Format("UPDATE {0} SET", base.GetTableNameStringNoWith); |
|
|
var setValues = string.Join(",", t.Where(s => !s.IsPrimarykey).Select(m => GetOracleUpdateColums(i,m,false)).ToArray()); |
|
|
var setValues = string.Join(",", t.Where(s => !s.IsPrimarykey).Where(s=> OldPrimaryKeys==null||!OldPrimaryKeys.Contains(s.DbColumnName)).Select(m => GetOracleUpdateColums(i,m,false)).ToArray()); |
|
|
var pkList = t.Where(s => s.IsPrimarykey).ToList(); |
|
|
var pkList = t.Where(s => s.IsPrimarykey).ToList(); |
|
|
List<string> whereList = new List<string>(); |
|
|
List<string> whereList = new List<string>(); |
|
|
foreach (var item in pkList) |
|
|
foreach (var item in pkList) |
|
|