"ShoppingCart": "server=(localdb)\\MSSQLLocalDB;database=SomeDBt;Trusted_Connection=true"
ENTRYPOINT ["dotnet", "ShoppingCart.API.dll", "--urls", "https://0.0.0.0:5000"]
public async Task<bool> IsDublicated(string label)
{
bool flag = false;
var check = await _context.Set<Product>()
.FirstOrDefaultAsync(property => property.Label.ToLower() == label.ToLower());
if (check.Label == label)
{
return flag = true;
}
return flag;
}
.Where(e => e.PropertyType == typeof(PROPERTY))
.Where(e => e.PropertyType == typeof(string))
.Where(property => property.Name == propertyLabel)
Я же в сервисе details присваиваю.