public void TestAutoSync(ComplexType_Parent parent, Phone phone)
        {
            // update a nested simple member
            parent.ContactInfo.HomeAddress.AddressLine2 = "Updated";

            // set a CT ref to the new phone instance
            parent.ContactInfo.PrimaryPhone = phone;
        }
 public void TestAutoSync(Phone phone)
 {
     this.OnTestAutoSyncInvoking(phone);
     base.InvokeAction("TestAutoSync", phone);
     this.OnTestAutoSyncInvoked();
 }
 partial void OnTestAutoSyncInvoking(Phone phone);
 partial void OnPrimaryPhoneChanging(Phone value);
 /// <summary>
 /// Invokes the 'TestAutoSync' method of the specified <see cref="ComplexType_Parent"/> entity.
 /// </summary>
 /// <param name="parent">The <see cref="ComplexType_Parent"/> entity instance.</param>
 /// <param name="phone">The value for the 'phone' parameter for this action.</param>
 public void TestAutoSync(ComplexType_Parent parent, Phone phone)
 {
     parent.TestAutoSync(phone);
 }