mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 18:52:50 +08:00
- 修复 AggregateRoot 自动 Attach 问题;
This commit is contained in:
parent
73d8edbd52
commit
3ec8e2118d
@ -196,9 +196,11 @@ namespace FreeSql
|
|||||||
protected void SelectAggregateRootTracking(object list)
|
protected void SelectAggregateRootTracking(object list)
|
||||||
{
|
{
|
||||||
if (list == null) return;
|
if (list == null) return;
|
||||||
var ls = list as IEnumerable<TEntity>;
|
if (list is IEnumerable<TEntity> entities)
|
||||||
if (ls == null)
|
|
||||||
{
|
{
|
||||||
|
Attach(entities);
|
||||||
|
return;
|
||||||
|
}
|
||||||
var ie = list as IEnumerable;
|
var ie = list as IEnumerable;
|
||||||
if (ie == null) return;
|
if (ie == null) return;
|
||||||
var isfirst = true;
|
var isfirst = true;
|
||||||
@ -217,8 +219,6 @@ namespace FreeSql
|
|||||||
if (item is TEntity item2) Attach(item2);
|
if (item is TEntity item2) Attach(item2);
|
||||||
else return;
|
else return;
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
//void SelectAggregateRootNavigateReader<T1>(ISelect<T1> currentQuery, Type entityType, string navigatePath, Stack<Type> ignores)
|
//void SelectAggregateRootNavigateReader<T1>(ISelect<T1> currentQuery, Type entityType, string navigatePath, Stack<Type> ignores)
|
||||||
//{
|
//{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user