var result = (from role in context.AccountRole join s in context.AccountToRole.Where(s=>s.AccountID==41) on role.ID equals s.RoleID into temp from tt in temp.DefaultIfEmpty() select new { ID = role.ID, RoleName = role.Description, RoleID = tt.RoleID.ToString() }).ToList();