How could I "set" a contact's property?
I wrote the following code in C# to modify both "Contact" and "ContactEmail" properties of the "Client" class instance:
ProjectSearchCriteria criteria = new ProjectSearchCriteria(ProjectSearchKey.CompanyName , "Training");
SDKProjectList projects = projectFactory.GetData(criteria);
SDKProject selectedProject;
if (projects.Count == 1)
{
selectedProject = projects[0];
selectedProject.Contacts[0].Address.Contact = "John";
selectedProject.Contacts[0].Address.ContactEmail = "test@yahoo.com";
selectedProject.Contacts[0].Save();
}
After executing such code, D-Tools SI 5.5's interface does not reflect the changes as well as the database "DToolsProjects50". What is wrong with my code?
|