I was trying to update a record in a table last night, using LINQ. Everything was fine and running without any errors.
Surpisingly the record was not getting updated. I then attached the modified object to the context. It started giving an exception as, Can't perform Create, Update or Delete operations on Table because it has no primary key. So here is one alternative.