Problema con convertir int a string en linq a entidades

var items = from c in contacts
            select new ListItem
            {
                Value = c.ContactId, //Cannot implicitly convert type 'int' (ContactId) to 'string' (Value).
                Text = c.Name
            };
var items = from c in contacts
            select new ListItem
            {
                Value = c.ContactId.ToString(), //Throws exception: ToString is not supported in linq to entities.
                Text = c.Name
            };

¿Hay alguna manera puedo lograr esto? Tenga en cuenta que en VB.NET no hay ningún problema. Utilice el primer fragmento de código. Funciona simplemente bien, VB es flexible, no puedo acostumbrarme al rigor de C #.

Respuestas a la pregunta(15)

Su respuesta a la pregunta