Optimize error message

This commit is contained in:
sunkaixuan 2022-06-12 16:07:12 +08:00
parent 9e6a1f8406
commit 5a7b5ca8b9

View File

@ -117,6 +117,14 @@ namespace SqlSugar
{
return GetOneToManySql();
}
else if (Navigat.NavigatType == NavigateType.Dynamic)
{
Check.ExceptionEasy(
true,
" NavigateType.Dynamic no support expression . " + this.ProPertyEntity.Type.Name,
" NavigateType.Dynamic 自定义导航对象不支持在Where(x=>x.自定义.Id==1)等方法中使用" + this.ProPertyEntity.Type.Name);
return null;
}
else
{
return GetManyToManySql();