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

Commit 39c7d70

Browse files
committed
Add UnsafeOrderBy()
1 parent 108cab2 commit 39c7d70

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ServiceStack.OrmLite/Expressions/SqlExpression.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,11 @@ public virtual SqlExpression<T> OrderBy()
348348

349349
public virtual SqlExpression<T> OrderBy(string orderBy)
350350
{
351-
orderBy.SqlVerifyFragment();
351+
return UnsafeOrderBy(orderBy.SqlVerifyFragment());
352+
}
353+
354+
public virtual SqlExpression<T> UnsafeOrderBy(string orderBy)
355+
{
352356
orderByProperties.Clear();
353357
this.orderBy = string.IsNullOrEmpty(orderBy)
354358
? null

0 commit comments

Comments
 (0)