как я могу нарисовать и int в строку? Ни одно из следующих действий не работает:
from s in ctx.Services
where s.Code.ToString().StartsWith("1")
select s
from s in ctx.Services
where Convert.ToString(s.Code).StartsWith("1")
select s
from s in ctx.Services
where ((string)s.Code).ToString().StartsWith("1")
select s
ИЗМЕНИТЬ
Ошибка, которую я получаю:
LINQ to Entities does not recognize the method 'System.String ToString()' method, and this method cannot be translated into a store expression