Serialization question
Old forum URL: forums.lhotka.net/forums/t/8402.aspx
JasonRShaver posted on Sunday, January 24, 2010
I am using 3.8 with managed properties. I also have a single 'calculated' property. Is there a way to get this property included with the XmlSerializer? It seems otherwise only the 'managed' properties will be included. Thanks.JonnyBee replied on Monday, January 25, 2010
Hi,
Are you using Silverlight client og WinForms/WPF?
If you ar using MobileFormatter you should override a couple of methods defined in Csla.Core.MobileObject
Ie, your BO should override OnGetState and OnSetState to get/write non-managed properties to/from the XmlSerializer.
RockfordLhotka replied on Monday, January 25, 2010
Or create a private managed property to store the value - that's probably the simplest solution.Copyright (c) Marimer LLC