timestamp property

timestamp property

Old forum URL: forums.lhotka.net/forums/t/10162.aspx


lazaroms posted on Sunday, March 13, 2011

Hi:

Yesterday I bought the "Creating business objects" book. There is no treatment for the "timestamp property", Will it be in the Data Access book?

In the sample code I saw the "timestamp property" was treated like a managed backing field? Could somebody explain me why it canged from private to managed?

 

Thanks,

 

LMSantin

RockfordLhotka replied on Sunday, March 13, 2011

The reason for making it a private property with a managed backing field is so the business classes work with Silverlight and WP7.

Yes, I could have overridden OnGetState and OnSetState to serialize a private backing field, but I think it is simpler to use a managed backing field so CSLA does the work for me and my business classes don't end up cluttered with serialization code.

lazaroms replied on Monday, March 14, 2011

Thanks Rocky

Copyright (c) Marimer LLC