I have a many-to-many relation between customers (for example a company) and persons. Adding new already stored persons to a company is working, but how do I delete an association between those 2, in case some person stops working in this company?
I don't want to delete the person or the company. Just the entry in my customer_person joining table.
Something like:
context.Entry(someCustomer.somePerson).State = System.Data.Entity.EntityState.Deleted;
deletes the person. That's not what I want.