Updating entities

All examples assume we have a CRM entity class, a CrmControllerFactory and a CrmEntityController.

In the following example, a CrmContact is retrieved by its Guid. The firstname is then changed to Sarah before the entity is updated:

 

CrmContact contact = crmContactController.Get(guid);
contact.FirstName = "Sarah";
crmContactController.Update(contact);

Last edited Mar 13, 2012 at 10:53 AM by karolikl, version 3

Comments

No comments yet.