Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/Redis.OM.BasicMatchingQueries/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ static void ShowCustomers(string type, List<Customer> customers)
// match by numeric
// Find all customers with Age is 20
var customerWithAge20 = customerCollection.Where(x => x.Age == 20).ToList();
ShowCustomers("Age == 20", customerWithFirstNameCustomer);
ShowCustomers("Age == 20", customerWithAge20);

// Find all customers with Age is more than 20
var customerWithAgeMoreThan20 = customerCollection.Where(x => x.Age > 20).ToList();
Expand All @@ -32,12 +32,12 @@ static void ShowCustomers(string type, List<Customer> customers)
// match by boolean
// Find all customers with IsActive is true
var activeCustomer = customerCollection.Where(x => x.IsActive).ToList();
ShowCustomers("IsActive == true", customerWithFirstNameCustomer);
ShowCustomers("IsActive == true", activeCustomer);

// match by enums
// Find all customers with Gender is Male
var maleCustomer = customerCollection.Where(x => x.Gender == Gender.Male).ToList();
ShowCustomers("Gender == Gender.Male", customerWithFirstNameCustomer);
ShowCustomers("Gender == Gender.Male", maleCustomer);

// multiple matches

Expand Down