I am baffled as to why I am getting this error given that I am calling save on the Collection not the child. Any thoughts?
Class Structure:
CountryList – EditableRootCollection
Country – EditableChild
Code:
Country mCountry = Country.NewCountry();
mCountry.CountryCode = "TST";
mCountry.CountryName = "Test Country";
mCountryList = CountryList.GetAll();
mCountryList.Add(mCountry);
mCountryList = mCountryList.Save();
Exception:
DataPortal.Update failed (Can not directly save a child object)