Skip to content

Commit

Permalink
Added a caluse to handle FilterOperator.IsNotEqualTo
Browse files Browse the repository at this point in the history
  • Loading branch information
MrYossu committed Oct 8, 2024
1 parent cdc422e commit 006acb7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ private static void AddValue(List<SqlParameter> parameters, string member, Filte
private static string AddSql(string member, FilterOperator op, int n, string sqlFilterConjunction) =>
$"{sqlFilterConjunction} {member}" + op switch {
FilterOperator.IsEqualTo => $"=@{member}{n}",
FilterOperator.IsNotEqualTo => $"<>@{member}{n}",
FilterOperator.Contains => $" like @{member}{n}",
FilterOperator.StartsWith => $" like @{member}{n}",
FilterOperator.EndsWith => $" like @{member}{n}",
Expand Down

0 comments on commit 006acb7

Please sign in to comment.