LINQ Guid toString()
Posted
by Sevki
on Stack Overflow
See other posts from Stack Overflow
or by Sevki
Published on 2010-03-25T01:11:27Z
Indexed on
2010/03/25
1:13 UTC
Read the original article
Hit count: 332
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?
© Stack Overflow or respective owner