我在查詢一個DataColumn的值等於一個數的集合。問題是,我無法將對象轉換爲Linq查詢中的int值。在Linq中將對象轉換爲int Where子句
錯誤在where子句中觸發。有什麼建議麼?
有沒有我不知道的特殊語法?
var datos = _dttMasterViewTransaction.AsEnumerable().Where(r => r["JEID"] == FundsID).Select(r => new EntityJESummary()
{
Test = r["test"]
}).ToList();
什麼類型是_dttMasterViewTransaction? –
@Anton:DataTable –