diff --git a/Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/IncludesHelper.cs b/Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/IncludesHelper.cs index 431d92c1d..405227454 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/IncludesHelper.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/IncludesHelper.cs @@ -33,28 +33,93 @@ namespace SqlSugar } private void _Includes(SqlSugarProvider context, params Expression[] expressions) { - throw new NotImplementedException(); + Func, List> SelectR1 = it => it.Select().ToList().Select(x => x as object).ToList(); + Func, List> SelectR2 = it => it.Select().ToList().Select(x => x as object).ToList(); + Func, List> SelectR3 = it => it.Select().ToList().Select(x => x as object).ToList(); + var navigat = new NavigatManager(); + navigat.SelectR1 = SelectR1; + navigat.SelectR2 = SelectR2; + navigat.SelectR3 = SelectR3; + navigat.Expressions = expressions; + navigat.Context = this.Context; + if (this.QueryBuilder.Includes == null) this.QueryBuilder.Includes = new List(); + this.QueryBuilder.Includes.Add(navigat); } private void _Includes(SqlSugarProvider context, params Expression[] expressions) { - throw new NotImplementedException(); + Func, List> SelectR1 = it => it.Select().ToList().Select(x => x as object).ToList(); + Func, List> SelectR2 = it => it.Select().ToList().Select(x => x as object).ToList(); + Func, List> SelectR3 = it => it.Select().ToList().Select(x => x as object).ToList(); + Func, List> SelectR4 = it => it.Select().ToList().Select(x => x as object).ToList(); + var navigat = new NavigatManager(); + navigat.SelectR1 = SelectR1; + navigat.SelectR2 = SelectR2; + navigat.SelectR3 = SelectR3; + navigat.SelectR4 = SelectR4; + navigat.Expressions = expressions; + navigat.Context = this.Context; + if (this.QueryBuilder.Includes == null) this.QueryBuilder.Includes = new List(); + this.QueryBuilder.Includes.Add(navigat); } private void _Includes(SqlSugarProvider context, params Expression[] expressions) { - throw new NotImplementedException(); + Func, List> SelectR1 = it => it.Select().ToList().Select(x => x as object).ToList(); + Func, List> SelectR2 = it => it.Select().ToList().Select(x => x as object).ToList(); + Func, List> SelectR3 = it => it.Select().ToList().Select(x => x as object).ToList(); + Func, List> SelectR4 = it => it.Select().ToList().Select(x => x as object).ToList(); + Func, List> SelectR5 = it => it.Select().ToList().Select(x => x as object).ToList(); + var navigat = new NavigatManager(); + navigat.SelectR1 = SelectR1; + navigat.SelectR2 = SelectR2; + navigat.SelectR3 = SelectR3; + navigat.SelectR4 = SelectR4; + navigat.SelectR5 = SelectR5; + navigat.Expressions = expressions; + navigat.Context = this.Context; + if (this.QueryBuilder.Includes == null) this.QueryBuilder.Includes = new List(); + this.QueryBuilder.Includes.Add(navigat); } private void _Includes(SqlSugarProvider context, params Expression[] expressions) { - throw new NotImplementedException(); + Func, List> SelectR1 = it => it.Select().ToList().Select(x => x as object).ToList(); + Func, List> SelectR2 = it => it.Select().ToList().Select(x => x as object).ToList(); + Func, List> SelectR3 = it => it.Select().ToList().Select(x => x as object).ToList(); + Func, List> SelectR4 = it => it.Select().ToList().Select(x => x as object).ToList(); + Func, List> SelectR5 = it => it.Select().ToList().Select(x => x as object).ToList(); + Func, List> SelectR6 = it => it.Select().ToList().Select(x => x as object).ToList(); + var navigat = new NavigatManager(); + navigat.SelectR1 = SelectR1; + navigat.SelectR2 = SelectR2; + navigat.SelectR3 = SelectR3; + navigat.SelectR4 = SelectR4; + navigat.SelectR5 = SelectR5; + navigat.SelectR6 = SelectR6; + navigat.Expressions = expressions; + navigat.Context = this.Context; + if (this.QueryBuilder.Includes == null) this.QueryBuilder.Includes = new List(); + this.QueryBuilder.Includes.Add(navigat); } private void _Includes(SqlSugarProvider context, params Expression[] expressions) { - throw new NotImplementedException(); - } - private void _Includes(SqlSugarProvider context, params Expression[] expressions) - { - throw new NotImplementedException(); + Func, List> SelectR1 = it => it.Select().ToList().Select(x => x as object).ToList(); + Func, List> SelectR2 = it => it.Select().ToList().Select(x => x as object).ToList(); + Func, List> SelectR3 = it => it.Select().ToList().Select(x => x as object).ToList(); + Func, List> SelectR4 = it => it.Select().ToList().Select(x => x as object).ToList(); + Func, List> SelectR5 = it => it.Select().ToList().Select(x => x as object).ToList(); + Func, List> SelectR6 = it => it.Select().ToList().Select(x => x as object).ToList(); + Func, List> SelectR7 = it => it.Select().ToList().Select(x => x as object).ToList(); + var navigat = new NavigatManager(); + navigat.SelectR1 = SelectR1; + navigat.SelectR2 = SelectR2; + navigat.SelectR3 = SelectR3; + navigat.SelectR4 = SelectR4; + navigat.SelectR5 = SelectR5; + navigat.SelectR6 = SelectR6; + navigat.SelectR7 = SelectR7; + navigat.Expressions = expressions; + navigat.Context = this.Context; + if (this.QueryBuilder.Includes == null) this.QueryBuilder.Includes = new List(); + this.QueryBuilder.Includes.Add(navigat); } - } }