Entity framework (3.5): How to translate a certain LINQ query to eSQL?
- by Sebastian P.R. Gingter
Hi there,
I have the following LINQ query that I need to translate to Entity SQL /eSQL):
return (ObjectQuery<User>) from user in Users
where !user.Roles.Any(r => r.AnIntegerProperty < 0)
select user;
User.Roles is an navigation property to the n:m relation to Roles and there also is a Role.Users navigation property the other…