From 10c523f2f77bb71fafa64ffe4c2c2a56ffe02bc4 Mon Sep 17 00:00:00 2001 From: Janak Shrestha Date: Mon, 23 Jul 2018 15:36:22 -0400 Subject: [PATCH] Implemented changes in example sample --- .../Enums/{QueryOperand.cs => Operand.cs} | 0 .../Helpers/ExpressionInputGenerator.cs | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) rename DynamicExpressionBuilder/Enums/{QueryOperand.cs => Operand.cs} (100%) diff --git a/DynamicExpressionBuilder/Enums/QueryOperand.cs b/DynamicExpressionBuilder/Enums/Operand.cs similarity index 100% rename from DynamicExpressionBuilder/Enums/QueryOperand.cs rename to DynamicExpressionBuilder/Enums/Operand.cs diff --git a/Examples/ExpressionBuilderExample/Helpers/ExpressionInputGenerator.cs b/Examples/ExpressionBuilderExample/Helpers/ExpressionInputGenerator.cs index 29758bd..8038168 100644 --- a/Examples/ExpressionBuilderExample/Helpers/ExpressionInputGenerator.cs +++ b/Examples/ExpressionBuilderExample/Helpers/ExpressionInputGenerator.cs @@ -12,28 +12,28 @@ public static IList GetExpressionInputList() { new ExpressionInput { - Operand = QueryOperand.And, //First Item does not matter And or OR + Operand = Operand.And, //First Item does not matter And or OR Operation = Operation.Contains, PropertyName = "Name", Value = "Jack" }, new ExpressionInput { - Operand = QueryOperand.And, + Operand = Operand.And, Operation = Operation.StringEquals, //Operation.Equals PropertyName = "State", Value = "FL" }, new ExpressionInput { - Operand = QueryOperand.Or, + Operand = Operand.Or, Operation = Operation.NotEquals, PropertyName = "CrimeRecord", Value = false }, new ExpressionInput { - Operand = QueryOperand.And, + Operand = Operand.And, Operation = Operation.GreaterThanOrEqual, PropertyName = "AnnualIncome", Value = (double)500000 //Value need to be parsed to Expression's object (T) type. Here T is of Citizen type and AnnualIncome is of double type.