I have two entities Customers & PhoneNumbers, my customer entity has collection of phone numbers, when I add new customer and add some phone numbers, then press click remove customer button, EF throw 'Adding a relationship with an entity which is in the Deleted state is not allowed'. this question already asked but I could not find any solution to solve this problem. I use below code to remove a customer in CustomerRepository:
public override void Remove(Customer model)
{
Context.Customers.Remove(model);
}