0
It’s been a while since I’ve dealt with FE so I doubt it. Have the classes Product and Producthow much and need to make an inquiry in the products with quantity equal to 10;
I tried to:
var retorno = controle.Produto.Where(x => x.ProdutoQuantidade.Total.Equals(10)).toList();
However it already gives error in the ". Total", it does not find any property of the class Productoquantidade
[EDITED] I mentioned that it was above 10 by mistake, the problem is not the Equal but was not finding the class properties. I already managed to solve:
var retorno = controle.Produto.Where(x => x.ProdutoQuantidade.Any(y => y.Total == 10)).ToList();
thank you [EDITED]
if you can put the classes
Produto
andProdutoQuantidade
? and in place ofEquals
place== 10
– novic