I have PM Inbox and 2 Tables: Users and Admins.
I have this query:
return (from pm in dc.PrivateMessages
join user in dc.Users
on pm.Sender equals user.UserID
select new PMInbox
{
SenderUsername = user.Username
}).ToList();
But there I can only have all PMs from User-Senders.
Which kind of join I must add here to have pm.Sender == user.UserID OR pm.Sender == admin.AdminID?
Logically, that’s something like this:
Or you could just make it a cross-join with a where clause: