Skip to content

Commit a1b859b

Browse files
committed
1 parent 506125b commit a1b859b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Simple.Data/SimpleQuery.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,10 @@ public override bool TryInvokeMember(InvokeMemberBinder binder, object[] args, o
345345
}
346346
if (binder.Name.StartsWith("then", StringComparison.OrdinalIgnoreCase))
347347
{
348+
if (args.Length != 0)
349+
{
350+
throw new ArgumentException("ThenByColumn form does not accept parameters");
351+
}
348352
result = ParseThenBy(binder.Name);
349353
return true;
350354
}

0 commit comments

Comments
 (0)