0
當我在組合框中選擇僱員姓名,我需要在一個文本框我怎樣才能從LINQ查詢選定的項目在一個變量
using (LINQtoEntitiesEntities MyEntities = new LINQtoEntitiesEntities())
{
ObjectQuery<Employee> Emp = MyEntities.Employee;
comboBox1.DataSource = (from u in Emp select new { u.ID, u.Name, u.BirthDate }).ToList();
comboBox1.ValueMember = "ID";
comboBox1.DisplayMember = "Name";
TextBox1.Text = ....................... ;
}
我需要得到u.BirthDate
在變量顯示員工出生日期從查詢 我該怎麼做?