I want to convert the sql below
SELECT a.UserId, UserName, RealName, a.LocationID, LocationName, c.RoleId, RoleName
FROM UserProfile a LEFT JOIN Location b ON a.LocationID = b.LocationID
LEFT JOIN webpages_UsersInRoles c ON a.UserId = c.UserId
LEFT JOIN webpages_Roles d ON c.RoleId = d.RoleId
to something like this:
db.UserProfile.join(...
I have tried to find how to do the join, but seems no luck. If there is anyone kind enough to tell me where I can find the example, I will be very grateful.
webpages_UsersInRoles, webpages_Roles
is not in my data context and I don't intent to.
Thank you.