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

Commit e676042

Browse files
authored
UnsafeGroupBy (#650)
1 parent e526881 commit e676042

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
@@ -775,7 +775,11 @@ public virtual SqlExpression<T> GroupBy()
775775

776776
public virtual SqlExpression<T> GroupBy(string groupBy)
777777
{
778-
groupBy.SqlVerifyFragment();
778+
return UnsafeGroupBy(groupBy.SqlVerifyFragment());
779+
}
780+
781+
public virtual SqlExpression<T> UnsafeGroupBy(string groupBy)
782+
{
779783
if (!string.IsNullOrEmpty(groupBy))
780784
this.groupBy = "GROUP BY " + groupBy;
781785
return this;

0 commit comments

Comments
 (0)