remove unsupported string.Compare with real database (#612)

This commit is contained in:
Cédric Michel
2021-11-02 14:20:39 +01:00
committed by GitHub
parent 984740d422
commit 553a10187d

View File

@@ -7,7 +7,7 @@ namespace Microsoft.eShopWeb.ApplicationCore.Specifications
{ {
public CatalogItemNameSpecification(string catalogItemName) public CatalogItemNameSpecification(string catalogItemName)
{ {
Query.Where(item => string.Compare(catalogItemName, item.Name, true) == 0); Query.Where(item => catalogItemName == item.Name);
} }
} }
} }