Quantcast
Channel: CSLA .NET
Viewing all articles
Browse latest Browse all 764

Ignore a lazy loaded readonly object (NonSerializable)

$
0
0

CSLA 4.5

On a EditableBusinessObject, I might have a ReadOnly lookup object that is lazy loaded.

My question is this: how do I keep that from getting saved into the graph when it is being serialized with the new PropertyInfo techniques. 

In the old days I would have used a private backing field like so:

<NonSerializable()> mBacking as MyReadOnlyObject.

Thanks,

 


Viewing all articles
Browse latest Browse all 764

Trending Articles