0
I have a JOB in which I need to update all the values to the maximum value that exists for a column, but my code is not working. Can someone help me?
My code:
List<SqlOnlyCostModel> costat = new List<SqlOnlyCostModel>();
foreach (var QuantityItem in all)
{
int maxQtd = all.Max(x => x.QuantityItem);
decimal maxPrice = all.Max(x => x.UnitPrice);
string nCurrency = all.Max(x => x.Currency);
string nCost = all.Max(x => x.Currency);
}
_dbEngContext.SaveChanges();
Lucas, translate your question into English!
– Luiz Augusto