1

I need a solution on detaching an Entity and his child records from a context. If i try to detach the parent entity only from a List<> i queried with LINQ to Entities i lose the child records. If i try to enumerate through the child records and detach them i get an InvalidOperationException.

Is there a solution i miss?

George Taskos
  • 7,808
  • 18
  • 76
  • 140

1 Answers1

1

Take a look at the answer by Alex James here.
Maybe this article will also be helpful.

Community
  • 1
  • 1
Devart
  • 115,199
  • 22
  • 161
  • 180
  • Yes thank you. Even i have fixed using Serialization (quick and working) I marked your answer. I want to learn about self tracking entities now, looks promising. – George Taskos Sep 02 '10 at 11:53