Skip to content

Commit 10c523f

Browse files
committed
Implemented changes in example sample
1 parent 471a950 commit 10c523f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

File renamed without changes.

Examples/ExpressionBuilderExample/Helpers/ExpressionInputGenerator.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,28 @@ public static IList<ExpressionInput> GetExpressionInputList()
1212
{
1313
new ExpressionInput
1414
{
15-
Operand = QueryOperand.And, //First Item does not matter And or OR
15+
Operand = Operand.And, //First Item does not matter And or OR
1616
Operation = Operation.Contains,
1717
PropertyName = "Name",
1818
Value = "Jack"
1919
},
2020
new ExpressionInput
2121
{
22-
Operand = QueryOperand.And,
22+
Operand = Operand.And,
2323
Operation = Operation.StringEquals, //Operation.Equals
2424
PropertyName = "State",
2525
Value = "FL"
2626
},
2727
new ExpressionInput
2828
{
29-
Operand = QueryOperand.Or,
29+
Operand = Operand.Or,
3030
Operation = Operation.NotEquals,
3131
PropertyName = "CrimeRecord",
3232
Value = false
3333
},
3434
new ExpressionInput
3535
{
36-
Operand = QueryOperand.And,
36+
Operand = Operand.And,
3737
Operation = Operation.GreaterThanOrEqual,
3838
PropertyName = "AnnualIncome",
3939
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.

0 commit comments

Comments
 (0)