LINQ to SQL: To Attach or Not To Attach
- by bradhe
So I'm have a really hard time figuring out when I should be attaching to an object and when I shouldn't be attaching to an object. First thing's first, here is a small diagram of my (very simplified) object model.
Edit: Okay, apparently I'm not allowed to post images...here you go: http://i.imgur.com/2ROFI.png
In my DAL I create a new…