Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 1b348b7

Browse files
committed
Add OrderByDescending to IUntypedSqlExpression
1 parent ff053af commit 1b348b7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/ServiceStack.OrmLite/Expressions/IUntypedSqlExpression.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ public interface IUntypedSqlExpression : ISqlExpression
6565
IUntypedSqlExpression ThenBy(string orderBy);
6666
IUntypedSqlExpression ThenBy<Table>(Expression<Func<Table, object>> keySelector);
6767
IUntypedSqlExpression OrderByDescending<Table>(Expression<Func<Table, object>> keySelector);
68+
IUntypedSqlExpression OrderByDescending(string orderBy);
6869
IUntypedSqlExpression ThenByDescending(string orderBy);
6970
IUntypedSqlExpression ThenByDescending<Table>(Expression<Func<Table, object>> keySelector);
7071

@@ -416,6 +417,12 @@ public IUntypedSqlExpression OrderByDescending<Table>(Expression<Func<Table, obj
416417
return this;
417418
}
418419

420+
public IUntypedSqlExpression OrderByDescending(string orderBy)
421+
{
422+
q.OrderByDescending(orderBy);
423+
return this;
424+
}
425+
419426
public IUntypedSqlExpression ThenByDescending(string orderBy)
420427
{
421428
q.ThenByDescending(orderBy);

0 commit comments

Comments
 (0)