A blog dedicated to things I pick up along the way
In order to retrieve the highest value of a column in a list of collection, Linq offers a handy method to achieve this;
Dim maxUnitsInStock = Aggregate prod In db.Products _
Into Max(prod.UnitsInStock)
No comments:
Post a Comment