mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 10:42:52 +08:00
add IncludeMany exception tips
This commit is contained in:
parent
12bb21d944
commit
c88efe24d1
@ -372,6 +372,7 @@ namespace FreeSql.Internal.CommonProvider
|
|||||||
if (whereExp == null)
|
if (whereExp == null)
|
||||||
{
|
{
|
||||||
tbref = tb.GetTableRef(collMem.Member.Name, true);
|
tbref = tb.GetTableRef(collMem.Member.Name, true);
|
||||||
|
if (tbref == null) throw new Exception($"IncludeMany 类型 {tb.Type.DisplayCsharp()} 的属性 {collMem.Member.Name} 不是有效的导航属性,提示:IsIgnore = true 不会成为导航属性");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user