Let's say I created a new product like this:
Product p=new Product(){ Id= 2,Name="some name"};
My product variable has never been attached to a data context, how can I attach this entity so that my existing product in the database with Id=2 gets update with the name of my detached product?