I find it really problematic that LLBLGen does not allow you to create self-referential relationships in Entities.
Let me give an example:
In a program I am writing, I am keeping a list of messages, so I have created a Message entity in LLBLGen. Messages in the program can have one or more "parent" records, so I created a MessageParent entity, which has two useful fields: MessageChild and MessageParent. The resulting graph is then similar to a file system that allows "hard links" -i.e., a node can have multiple parents.
Now, for some reason, LLBLGen will not let me create a m->n relationship between Messages to get to the parents. Therefore, the code I have write to deal with the situation is extremely obtuse. Instead of being able to say: Message.Parents, my only solution seems to be the following:
Message.MessageParentViaMessageChild.MessageViaMessageParent
Which in my view is terribly confusing. Am I missing something? Can anyone assist?
(I am using VS 2008 / LLBLGen 2.5 on a WinXP box)
Thank you in advance for any suggestions,
Greg Sherman