From 7e78ea5ccdadf8b3d739bdab4b18fb500fc59cd5 Mon Sep 17 00:00:00 2001 From: SMAH1 Date: Sat, 25 Oct 2025 08:41:32 +0330 Subject: [PATCH] fix: Basic matching queries example --- examples/Redis.OM.BasicMatchingQueries/Program.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/Redis.OM.BasicMatchingQueries/Program.cs b/examples/Redis.OM.BasicMatchingQueries/Program.cs index 99579653..57c4e91d 100644 --- a/examples/Redis.OM.BasicMatchingQueries/Program.cs +++ b/examples/Redis.OM.BasicMatchingQueries/Program.cs @@ -23,7 +23,7 @@ static void ShowCustomers(string type, List 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(); @@ -32,12 +32,12 @@ static void ShowCustomers(string type, List 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