mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-02-27 16:50:33 +08:00
Add Check
This commit is contained in:
@@ -2311,6 +2311,10 @@ namespace SqlSugar
|
|||||||
if (this.QueryBuilder.Includes != null)
|
if (this.QueryBuilder.Includes != null)
|
||||||
{
|
{
|
||||||
var managers=(this.QueryBuilder.Includes as List<object>);
|
var managers=(this.QueryBuilder.Includes as List<object>);
|
||||||
|
if (this.QueryBuilder.SelectValue.HasValue())
|
||||||
|
{
|
||||||
|
Check.ExceptionEasy("To use includes, use select after tolist()", "使用Includes请在ToList()之后在使用Select");
|
||||||
|
}
|
||||||
foreach (var it in managers)
|
foreach (var it in managers)
|
||||||
{
|
{
|
||||||
var manager = it as NavigatManager<TResult>;
|
var manager = it as NavigatManager<TResult>;
|
||||||
|
|||||||
Reference in New Issue
Block a user