private void PopulateClients() { IQueryable<GetUnfeeling_Result> clients; using(ProjetSGBDEntities context = new ProjetSGBDEntities()) { clients = context.GetUnfeeling(CurrentClient.Id); foreach(GetUnfeeling_Result client in clients) { comboBoxClients.Items.Add(new ClientSelection(client.ClientId, client.DisplayName(), client.LastName)); } comboBoxClients.DisplayMember = "DisplayName"; } }