Linq int a la cuerda
¿Cómo puedo lanzar e int en una cadena? Ninguno de los siguientes funciona:
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
EDITAR
El error que recibo es:
LINQ to Entities does not recognize the method 'System.String ToString()' method, and this method cannot be translated into a store expression