我想从下拉列表中检索值并通过 LINQ 在文本框中显示结果,但是此代码仅检索员工编号 1?
Employee employee = north.Employees.Single(q=> q.EmployeeID == int.Parse(DropDownList2.SelectedValue));
employee.FirstName = TextBox5.Text;
employee.LastName = TextBox6.Text;
north.SubmitChanges();
View();