8
shouts

Deleting entities in a many to many relatonship with Entity Framework and Ria Services

published 85 days, 18 hours, 16 minutes ago posted by http://micahlmartin.myopenid.com/http://micahlmartin.myopenid.com/ 87 days, 8 hours, 24 minutes ago
Wednesday, December 23, 2009 8:42:22 PM GMT Tuesday, December 22, 2009 6:34:05 AM GMT

Trying to delete a record in many to many relationship can be a bit tricky. In this scenario I have a person record that can be tied to multiple address records. Here is our database setup:   When creating the data model the Entity Framework will hide all the details for us of creating and updating the intermediary "PersonAddress" table.  Here's what's generated by the designer:

When generating our Ria Service, if we select the "Enable Editing" option for our "Address" table it will create all the C...

category: Silverlight | clicked: 70 | | source: www.codingcontext.com | show counter code
tags: Entity Framework, RIA Services, silveright