I have a list of recipients to send a message, but I want to exclude those from a certain Role, the problem is that I have this:
var recipients = (from up in _db.UserProfiles
join ms in _db.MembershipEntities
on up.UserId equals ms.UserId
join st in _db.Studios
on up.StudioId equals st.StudioId
select new
{
up.UserId,
up.UserName,
up.StudioId,
st.Name,
ms.Roles
}).ToList();
And the result is what I want, only that the query returns an object Role which has a RoleID and a RoleName, so Im not sure how to select the RoleName so I can specify which role I want to exclude.