Browse Source

Synchronization code

pull/40/head
sunkaixuan 1 year ago
parent
commit
47f9d0b304
  1. 4
      Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/ResolveItems/OneToManyNavgateExpressionN.cs

4
Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/ResolveItems/OneToManyNavgateExpressionN.cs

@ -226,10 +226,6 @@ namespace SqlSugar
BidColumn = item.ThisEntityInfo.Columns.FirstOrDefault(it => it.IsPrimarykey);
AidColumn = item.ParentEntityInfo.Columns.FirstOrDefault(it => it.IsPrimarykey);
if (item.Nav.MappingType == null)
{
return null;
}
var abEntity =this.context.EntityMaintenance.GetEntityInfo(item.Nav.MappingType);
var Ab_Aid = abEntity.Columns.FirstOrDefault(it => item.Nav.MappingAId == it.PropertyName);
var Ab_Bid = abEntity.Columns.FirstOrDefault(it => item.Nav.MappingBId == it.PropertyName);

Loading…
Cancel
Save