I've been at this for days and i still can't find a linq query that works. can anyone help me with a query on how to get the latest version of a item and put them into a list. The data structure looks like this
name | version
john | 1.2.35
john | 1.3
karen| 2.0
sora | 1.1.36
output should be
name | version
john | 1.3
karen| 2.0
sora | 1.1.36
so far i have this code
var packages = _readOnlyContext.Names.AsEnumerable().Select(x => new Names
{
Name = x.Name,
Version = x.Version.ToString()
});
