View Single Post
  #3 (permalink)  
Old September 24th, 2010, 06:15 AM
Ole F Ole F is offline
Authorized User
 
Join Date: Sep 2010
Posts: 13
Thanks: 1
Thanked 1 Time in 1 Post
Default Solution

I figured out how to make it work:

Code:
public void Delete(Dinner dinner)
{
    foreach(var rsvp in dinner.RSVPs)
    {
        entities.DeleteObject(rsvp);
    }
    entities.DeleteObject(dinner);
}
The Following User Says Thank You to Ole F For This Useful Post:
firedrawndagger (October 12th, 2010)