경우 표현 :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ël Althaus, Yes – Mediator