其中表達:如何將int轉換爲字符串列?
filtrationResult = filtrationResult.Where(string.Format("Convert.ToString({0}).Contains(@0)", filter.Field), filter.Value);
filter.Field的名稱列(Int32)已
我得到錯誤:
LINQ to Entities does not recognize the method 'System.String ToString(Int32)' method, and this method cannot be translated into a store expression.
轉換如何正確?
像一個數字的部分搜索? –
RaphaëlAlthaus,是 – Mediator