title: Concatenate two properties in EF to populate a ComboBox
body: <p>Im developing a new WinForms Project using the Entity Framework, C# and .NET 4.5. In my database I have a table 'Teacher' with two columns 'FirstName' and 'LastName'. How could I populate a ComboBox control with a value made by these two properties?</p>
  
  <p>The scenario:</p>
  
  <pre><code>private List&lt;Teacher&gt; ShowTeacher(String teacherID) 
  {
     List&lt;Teacher&gt; teachers = (from teacher in context.Teacher 
                              select teacher).Where(t =&gt; t.UserID == teacherID).ToList();
     return teachers;  
  }
  </code></pre>
  
  <p>And the code snippet in ComboBox:</p>
  
  <pre><code>cmbTeacher.DataSource = ShowTeacher(teacherID);
  cmbTeacher.DisplayMember = ""; //here should be placed the string "FisrtName"+"LastName"
  </code></pre>
  
  <p>Thanks in advance</p>