Browse Source

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

main
Cédric Michel 4 years ago
committed by GitHub
parent
commit
553a10187d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/ApplicationCore/Specifications/CatalogItemNameSpecification.cs

2
src/ApplicationCore/Specifications/CatalogItemNameSpecification.cs

@ -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);
} }
} }
} }

Loading…
Cancel
Save