1

Topic: Exception in EF

The expression cannot be evaluated. A common cause of this error is attempting to pass a lambda into a delegate. using (var serviceEntities = new ServiceEntities ()) {currentCity = serviceEntities. Cities. FirstOrDefault (x = X. IdCity ==/*currentContract2Device. IdCity*/77949);}

2

Re: Exception in EF

Hello, - rsdn - you wrote: R> The expression cannot be evaluated. A common cause of this error is attempting to pass a lambda into a delegate. R> R> using (var serviceEntities = new ServiceEntities ()) R> {R> currentCity = R> serviceEntities. Cities. FirstOrDefault (x = x. IdCity ==/*currentContract2Device. IdCity*/77949); R>} R> https://blogs.msdn.microsoft.com/eliofe … ds-to-run/