Updating entities in version 1.0

All examples assume we have a CRM entity classa 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:16 AM by karolikl, version 2

Comments

No comments yet.