title: Linq update many-many relationship
body: <p>New to Linq to Entities. I am using entity framework and linq. In my db I have something akin to Cars, Users, UserCars where UserCars holds the ID from User and Cars. Standard stuff.</p>
  
  <p>EF maps this to Car and User objects. </p>
  
  <p>Now a user currently has many cars. Through my application I end up with a new List of Car IDs. </p>
  
  <p>I need to update the UserCars table with the new list of cars for the current user.</p>
  
  <p>So what needs to happen basically, The current cars for the user are deleted, and the new list of car ids/userid is inserted.</p>
  
  <p>What is the easiest way to go about this using linq to entities?</p>