1
我使用這樣下拉使用LINQ
string query = "Select Id,Name+':'+Distribution_name+' 'as Name1 from BR_supervisor where((id not in (select SupId from tbluser where active='true')) and active='true') ";
DropDownList3.DataTextField = "Name1";
DropDownList3.DataValueField = "Id";
DropDownList3.DataBind();
SQL現在,我想我的查詢轉換爲LINQ表達式和綁定下拉結合兩列到一個下拉兩列的結合。這個怎麼做?