I have a query and i want to convert a decimal field to string but the query return the above error
LINQ to Entities does not recognize the method 'System.String ToString () "and it can not be translated into term store.
My query :
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()
});
can someone help me thanks