Skip to content

Commit

Permalink
Renamed QueryOperand to Operand
Browse files Browse the repository at this point in the history
  • Loading branch information
janaks09 committed Jul 23, 2018
1 parent 23acac8 commit 471a950
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DynamicExpressionBuilder/Enums/QueryOperand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/// <summary>
/// Expression query operands
/// </summary>
public enum QueryOperand
public enum Operand
{
/// <summary>
/// Equiavlent to &amp;&amp;
Expand Down
2 changes: 1 addition & 1 deletion DynamicExpressionBuilder/ExpressionBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static Expression<Func<T, bool>> GetExpression<T>(IList<ExpressionInput>
exp = GetExpression<T>(param, filter);
else
{
if (filter.Operand == QueryOperand.And)
if (filter.Operand == Operand.And)
{
var tempExp = GetExpression<T>(param, filter);
exp = Expression.AndAlso(exp, tempExp);
Expand Down
6 changes: 3 additions & 3 deletions DynamicExpressionBuilder/Helpers/ExpressionBuilderHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ public class ExpressionBuilderHelpers
/// <param name="value">Value to operate with</param>
/// <param name="operand">Operand. And, Or, Not</param>
/// <returns></returns>
public static ExpressionInput GetExpressionInput(string propertyName, Operation operation, object value, QueryOperand operand)
public static ExpressionInput GetExpressionInput(string propertyName, Operation operation, object value, Operand operand)
{
if (operand == QueryOperand.Not)
return new ExpressionInput { Value = value, Operand = QueryOperand.And, Operation = Operation.NotEquals, PropertyName = propertyName };
if (operand == Operand.Not)
return new ExpressionInput { Value = value, Operand = Operand.And, Operation = Operation.NotEquals, PropertyName = propertyName };
else
return new ExpressionInput { Value = value, Operand = operand, Operation = operation, PropertyName = propertyName };

Expand Down
2 changes: 1 addition & 1 deletion DynamicExpressionBuilder/Models/ExpressionInput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ public class ExpressionInput
/// <summary>
/// Expression operand
/// </summary>
public QueryOperand Operand { get; set; }
public Operand Operand { get; set; }
}
}

0 comments on commit 471a950

Please sign in to comment.