I have three tables:
User: UserId (pk)
FirstName
Lastname
Messages: MessageId (pk)
Heading
Body
User_Messages: UserId
MessageId
Now, the entity designer only creates two tables with an association bewteen the tables.
I am trying to select an item where UserId = value1 and MessageId = value2,
but cant seem to get it right. What would theentity query look like?
To select only users/messages, which are associated to each other, you can use
To select all users (and adding their messages, if any) use:
Finally, to select messages, and add user information for each of them, use: