Table Profile holds several columns, I am only interested in the distinct values of the column regIp
Linq below gives me all columns.
How can I narrow this down to just a list of distinct regIp?
var holdIPs = dbContext.Profile
.GroupBy(i => new { i.regIp })
.Select(i => i.FirstOrDefault()).ToList();