LINQ Guid toString()
- by Sevki
Hi this seems like it should work,
from something in collectionofsomestuff
select new SelectListItem(){Text = Name, Value = SomeGuid.ToString(), Selected = false};
When I try to do this it doesn't work give me error
LINQ to Entities does not recognize the method 'System.String ToString()' method, and this method cannot be translated into a store expression.
Is there a workaround?