var term = from s in DB.Terms
select new { s.Term_ID, s.TermName };
comboboxTerm.DataSource = term;
combobox.DisplayMember = "Term_Name";
combobox.ValueMember = "Term_ID";
我想将上述查询转换为列表<>,以便我可以将列表设置为组合框术语的数据源。这将使我能够在代码中访问 comboboxTerm selectedValue。