error the property is part of the object's key
Code Example - error the property is part of the object's key
context.Database.ExecuteSqlCommand("UPDATE Table SET [Name] = {0} WHERE [Name] = {1}", nameProperty, oldNameProperty);