diff --git a/FreeSql.Repository/AggregateRootRepository.cs b/FreeSql.Repository/AggregateRootRepository.cs index c17d7c2a..0600ba1a 100644 --- a/FreeSql.Repository/AggregateRootRepository.cs +++ b/FreeSql.Repository/AggregateRootRepository.cs @@ -137,7 +137,7 @@ namespace FreeSql public virtual ISelect Select => SelectAggregateRoot; /// /// 创建查询对象(纯净) - /// 当聚合根内关系复杂时,使用 this.SelectAggregateRootStaticCode 可以生成边界以内的 Include/IncludeMany 代码块 + /// 聚合根内关系较复杂时,AggregateRootUtils.GetAutoIncludeQueryStaicCode(fsql, typeof(Order)) 可以获得边界以内自动包含 Include/IncludeMany 代码字符串 /// protected ISelect SelectDiy => _repository.Select; /// @@ -154,13 +154,6 @@ namespace FreeSql } } /// - /// 按默认边界规则,返回 c# 静态代码 - /// 1、聚合根内关系复杂手工编写 Include/IncludeMany 会很蛋疼 - /// 2、返回的内容用,可用于配合重写仓储 override Select 属性 - /// 返回内容:fsql.Select<T>().Include(...).IncludeMany(...) - /// - protected string SelectAggregateRootStaticCode => $"//fsql.Select<{EntityType.Name}>()\r\nthis.SelectDiy{AggregateRootUtils.GetAutoIncludeQueryStaicCode(Orm, EntityType)}"; - /// /// ISelect.TrackToList 委托,数据返回后自动 Attach /// ///