public Dictionary <string, List <string> > GetObjectAttributeAssociations(Dictionary <int, string> objects) { Dictionary <string, List <string> > objectAttributeAssociations = new Dictionary <string, List <string> >(); foreach (string objectName in objects.Values) { List <string> attributes = new List <string>(); using (SqlDataReader reader = ObjectAttribute.GetObjectAttributes(objectName)) { while (reader.Read()) { attributes.Add(Convert.ToString(reader["AttributeName"])); } } objectAttributeAssociations.Add(objectName, attributes); } return(objectAttributeAssociations); }