I have the following model:
class serverMaster
{
public string vm { get; set; }
public string bm { get; set; }
public string incrday { get; set; }
public string incrtime { get; set; }
public string fullday { get; set; }
public string fulltime { get; set; }
public string backupgroup { get; set; }
public serverMaster(string vm1, string bm1, string incrday1, string incrtime1, string fullday1, string fulltime1, string backupgroup1)
{
vm = vm1;
bm = bm1;
incrday = incrday1;
incrtime = incrtime1;
fullday = fullday1;
fulltime = fulltime1;
backupgroup = backupgroup1;
}
}
and I have a data set like this:
How can I use Linq to find duplicates in the first column (so for example merge Aether) and concatenate the other fields.
I would ideally like to see output like this: