-1
不能隱式轉換類型system.collections.generic.List 到System.Data.DataTable如何列表對象轉換爲DataTable對象
List<string> selectedCustomer = new List<string>();
selectedCustomer.Add(CustomerID);
selectedCustomer.Add(FirstName);
selectedCustomer.Add(LastName);
DataTable dt = selectedCustomer;
這怎麼上述錯誤消息來解決?
使用'MoreLinq'這樣的回答https://stackoverflow.com/a/42550827/2946329 –