mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-12-20 00:25:48 +08:00
- 优化 内部代码 GeTableRef
This commit is contained in:
@@ -91,10 +91,11 @@ namespace FreeSql
|
||||
localAffrows += ret.Count;
|
||||
foreach (var entity in entitys) LocalCanAggregateRoot(repository.EntityType, entity, true);
|
||||
|
||||
foreach (var prop in table.Properties.Values)
|
||||
foreach (var tr in table.GetAllTableRef())
|
||||
{
|
||||
var tbref = table.GetTableRef(prop.Name, false);
|
||||
if (tbref == null) continue;
|
||||
var tbref = tr.Value;
|
||||
if (tbref.Exception != null) continue;
|
||||
if (table.Properties.TryGetValue(tr.Key, out var prop) == false) continue;
|
||||
switch (tbref.RefType)
|
||||
{
|
||||
case TableRefType.OneToOne:
|
||||
|
||||
Reference in New Issue
Block a user