- 增加 IncludeByPropertyName 按属性名进行 Include/IncludeMany 操作;#278

This commit is contained in:
2881099
2020-11-04 18:03:47 +08:00
parent 856ecf279d
commit b701ad8421
5 changed files with 71 additions and 2 deletions

View File

@ -333,6 +333,13 @@ namespace FreeSql
/// <returns></returns>
ISelect<T1> IncludeMany<TNavigate>(Expression<Func<T1, IEnumerable<TNavigate>>> navigateSelector, Action<ISelect<TNavigate>> then = null) where TNavigate : class;
/// <summary>
/// 按属性名字符串进行 Include/IncludeMany 操作
/// </summary>
/// <param name="property"></param>
/// <returns></returns>
ISelect<T1> IncludeByPropertyName(string property);
/// <summary>
/// 实现 select .. from ( select ... from t ) a 这样的功能<para></para>
/// 使用 AsTable 方法也可以达到效果<para></para>