mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 10:42:52 +08:00
debug #367
This commit is contained in:
parent
8c38922331
commit
8e14759fdd
@ -371,9 +371,14 @@ namespace FreeSql.Internal.CommonProvider
|
||||
var tbrefOneToManyColumns = new List<List<MemberExpression>>(); //临时 OneToMany 三个表关联,第三个表需要前两个表确定
|
||||
if (whereExp == null)
|
||||
{
|
||||
tbref = tb.GetTableRef(collMem.Member.Name, true);
|
||||
if (tbref == null)
|
||||
{
|
||||
tb = _commonUtils.GetTableByEntity(collMem.Expression.Type); //debug https://github.com/dotnetcore/FreeSql/issues/367
|
||||
tbref = tb.GetTableRef(collMem.Member.Name, true);
|
||||
if (tbref == null) throw new Exception($"IncludeMany 类型 {tb.Type.DisplayCsharp()} 的属性 {collMem.Member.Name} 不是有效的导航属性,提示:IsIgnore = true 不会成为导航属性");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//处理临时关系映射
|
||||
|
Loading…
x
Reference in New Issue
Block a user