I have this code:
Message message = new Message();
message.Id = 5;
message.EntityKey = context.CreateEntityKey("MessageSet", entity);
message.Votes++;
context.Attach(entity);
context.ObjectStateManager.GetObjectStateEntry(entity.EntityKey).SetModifiedProperty("Votes");
Save();
But of course, Votes initialize with 0.
How can a generated something like
Update Messages set Votes=Votes+1 where Id = 5
?? Thx