I have two entities, Group and Person, that are joined together in a many-to-many relationship. When my UI first loads, I have present a list of groups. When the user selects a group, I present the list of current people in that group.
In my UI, if the user accidentally removes a person from a group and re-adds the person to the same group and tries to save, they get a FK violation error.
What I haven't been able to figure out to do is detect if the Person instance is pending removal from the group. If I can detect and rollback the delete, I should be OK.
Ideally, I just add the person to the group again, and DevForce figures out that the relation already exists.
I thought about creating an intermediate entity that joins the Group and Person, but that just seems a kludge when I don't have additional properties.
Thoughts?