|
-
April 27th, 2010, 02:45 PM
#3
Re: LINQ to SQL Relationship Problem
Thanks for the reply! That's exactly what I want to do, the problem is the only way I know of to have the database automatically load a collection of objects from the database to one of my entity classes, is to use the association attribute and define an association. I don't have a reference to the data context from the event entity class, so I can't reference the cakes unless it's automatically loaded through an association. If I try to create a collection of cakes in each event, then each event will have a separate instance of the same cake, so if i edit the cake through one event, it won't be edited for all other events. I need to have a reference to the same cake objects in every event class. Please let me know if I'm missing something, cause this is what I understand at the moment. Thanks again!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|