using(var dataModel = new DataModel()) { var classes = dataModel.Attributes.Where(a => a.Field == "Class").Select(a => a.Key).Distinct().ToList(); }