1
我有一個查詢,我想一個十進制字段轉換爲字符串,但查詢返回上面的錯誤轉換領域C#
LINQ to Entities does not recognize the method 'System.String ToString() "and it can not be translated into term store.
我的查詢:
var t = (from f in db.teacher_fee
where f.fee_status == 1
select new
{
f.fee_date,
f.teacher_fee_id,
debit = "",
credit = f.total_amount.ToString()
});
可以有人幫忙me 謝謝
它不是我的情況! –
你可以在這裏找到你的問題的答案:http://stackoverflow.com/a/8192329/1694711 – Paul0PT
https://msdn.microsoft.com/en-us/library/dd466166.aspx – JamieD77