Hello,
I'm currently using Entity framework, and I want to perform a Linq query with a join on two columns, one being of type 'String', and the other of type 'Int32'.
Somethign similar to
from FirstEntity obj in context.FirstEntity
join SecondEntity obj2 in context.SecondEntity on obj.SecondEntityId equals obj2.Id.ToString()
with obj.SecondEntityId as String and obj2.Id as Int32
Unfortunately, the ToString operation does not seen to be supported by EF. I get stuck with this error (or some similar errors, if I want to convert string to Int32):
LINQ to Entities does not recognize the method 'System.String ToString()' method
and until now, I was not able to find a work around.
Thx for any help.