I'm trying to persist my business objects to disk. Some class types work, some done. I get the following error:
at Csla.Core.FieldManager.FieldDataManager.GetFieldData(IPropertyInfo prop) in C:\Local\StraittSoft\cslavb\Csla\Core\FieldManager\FieldDataManager.vb:line 109 at Csla.Core.BusinessBase.ReadProperty[P](PropertyInfo`1 propertyInfo) in C:\Local\StraittSoft\cslavb\Csla\Core\BusinessBase.vb:line 1763 at Csla.Core.BusinessBase.GetProperty[P](PropertyInfo`1 propertyInfo, Boolean throwOnNoAccess) in C:\Local\StraittSoft\cslavb\Csla\Core\BusinessBase.vb:line 1697 at Csla.Core.BusinessBase.GetProperty[P](PropertyInfo`1 propertyInfo) in C:\Local\StraittSoft\cslavb\Csla\Core\BusinessBase.vb:line 1618 at StraittSoft.Framework.www_imc_org.vEvent.get_Body() in C:\Local\StraittSoft\Frameworks\StraittSoft.Framework.BusinessFoundationWPF\Base Tables\www.imc.org\vCalendar\vEvent.vb:line 146"
Am get the same error if I use Binary or the new NetDataContract serialization. Before saving to disk the object work just fine, databinds and everyting. After loading back from disk I get the above error.
Thanks,
Bill
I found that the classes that work did not inherit properties from other classes. It seems that when an object is deserialized, that is a child class with inherited properties, the values stored in the 'Field Manager' do not sync with the reconstructed object.
I found values originally stored in one property placed into another property after deserializing.
If all properties reside in the same class everything is fine.
This issue is with the 3.5 version.
Thanks again,
Bill
This is a troubling observation.
I hope Rocky can find some time to comment on it.
Joe
Copyright (c) Marimer LLC