the name '' is not in scope on the left hand side of equalsWhat you need to do is the following:
join users in entities.Users on new { ID = userroles.fkUserId } equals new { ID = users.ID } into users_join from users in users_join.DefaultIfEmpty()To place the entity on the left you need to declare "on new { ID = userroles.fkUserId } equals new { ID = users.ID }", so basically swapping the values around!
Hope it helps.
No comments:
Post a Comment