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

Commit 8aa6b14

Browse files
committed
Ensure Where with no args clears Where Expression
1 parent 540cdce commit 8aa6b14

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ServiceStack.OrmLite/Expressions/SqlExpression.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ public virtual SqlExpression<T> From(string tables)
141141
public virtual SqlExpression<T> Where()
142142
{
143143
if (underlyingExpression != null) underlyingExpression = null; //Where() clears the expression
144-
return Where(string.Empty);
144+
whereExpression = null;
145+
return this;
145146
}
146147

147148
public virtual SqlExpression<T> Where(string sqlFilter, params object[] filterParams)

0 commit comments

Comments
 (0)