- 增加 FreeSql.Extensions.Linq ThenBy/ThenByDescending 扩展方法 #380;

This commit is contained in:
28810
2020-07-17 18:20:06 +08:00
parent a67e6a8cb5
commit e616f8e4a6
5 changed files with 91 additions and 20 deletions

View File

@ -47,5 +47,15 @@
【linq to sql】专用扩展方法不建议直接使用
</summary>
</member>
<member name="M:FreeSqlExtensionsLinqSql.ThenBy``2(FreeSql.ISelect{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}})">
<summary>
【linq to sql】专用扩展方法不建议直接使用
</summary>
</member>
<member name="M:FreeSqlExtensionsLinqSql.ThenByDescending``2(FreeSql.ISelect{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}})">
<summary>
【linq to sql】专用扩展方法不建议直接使用
</summary>
</member>
</members>
</doc>

View File

@ -141,4 +141,13 @@ public static class FreeSqlExtensionsLinqSql
{
return that;
}
/// <summary>
/// 【linq to sql】专用扩展方法不建议直接使用
/// </summary>
public static ISelect<T1> ThenBy<T1, TMember>(this ISelect<T1> that, Expression<Func<T1, TMember>> column) where T1 : class => that.OrderBy(column);
/// <summary>
/// 【linq to sql】专用扩展方法不建议直接使用
/// </summary>
public static ISelect<T1> ThenByDescending<T1, TMember>(this ISelect<T1> that, Expression<Func<T1, TMember>> column) where T1 : class => that.OrderByDescending(column);
}