mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 18:52:50 +08:00
- 修复 聚合根仓储(实验) 内部级联保存 bug;
This commit is contained in:
parent
f32b4c441c
commit
541000eee6
@ -268,7 +268,8 @@ namespace FreeSql
|
||||
UpdateColumns = b.Item4,
|
||||
UpdateColumnsString = string.Join(",", b.Item4.OrderBy(c => c))
|
||||
}).ToArray());
|
||||
var updateLogDict2 = updateLogDict.ToDictionary(a => a.Key, a => a.Value.ToDictionary(b => b.UpdateColumnsString, b => a.Value.Where(c => c.UpdateColumnsString == b.UpdateColumnsString).ToArray()));
|
||||
var updateLogDict2 = updateLogDict.ToDictionary(a => a.Key, a =>
|
||||
a.Value.GroupBy(b => b.UpdateColumnsString).ToDictionary(b => b.Key, b => a.Value.Where(c => c.UpdateColumnsString == b.Key).ToArray()));
|
||||
foreach (var dl in updateLogDict2)
|
||||
{
|
||||
foreach (var dl2 in dl.Value)
|
||||
|
@ -319,7 +319,8 @@ namespace FreeSql
|
||||
UpdateColumns = b.Item4,
|
||||
UpdateColumnsString = string.Join(",", b.Item4.OrderBy(c => c))
|
||||
}).ToArray());
|
||||
var updateLogDict2 = updateLogDict.ToDictionary(a => a.Key, a => a.Value.ToDictionary(b => b.UpdateColumnsString, b => a.Value.Where(c => c.UpdateColumnsString == b.UpdateColumnsString).ToArray()));
|
||||
var updateLogDict2 = updateLogDict.ToDictionary(a => a.Key, a =>
|
||||
a.Value.GroupBy(b => b.UpdateColumnsString).ToDictionary(b => b.Key, b => a.Value.Where(c => c.UpdateColumnsString == b.Key).ToArray()));
|
||||
foreach (var dl in updateLogDict2)
|
||||
{
|
||||
foreach (var dl2 in dl.Value)
|
||||
|
Loading…
x
Reference in New Issue
Block a user