From 553a10187d99134e6ec14f922ff46c6646282954 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Michel?= Date: Tue, 2 Nov 2021 14:20:39 +0100 Subject: [PATCH] remove unsupported string.Compare with real database (#612) --- .../Specifications/CatalogItemNameSpecification.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ApplicationCore/Specifications/CatalogItemNameSpecification.cs b/src/ApplicationCore/Specifications/CatalogItemNameSpecification.cs index 2a2b9e3..4832ad8 100644 --- a/src/ApplicationCore/Specifications/CatalogItemNameSpecification.cs +++ b/src/ApplicationCore/Specifications/CatalogItemNameSpecification.cs @@ -7,7 +7,7 @@ namespace Microsoft.eShopWeb.ApplicationCore.Specifications { public CatalogItemNameSpecification(string catalogItemName) { - Query.Where(item => string.Compare(catalogItemName, item.Name, true) == 0); + Query.Where(item => catalogItemName == item.Name); } } }