AdFactum ObjectMapper .NET Blog

Official blog of the AdFactum ObjectMapper .NET

Attribute: [StaticData]

Posted by Gerhard Stephan on August 7th, 2006

Using the StaticData attribute you can tell the ObjectMapper .NET that it’s your intentation that the class only contains static data.

What changes if the ObjectMapper .NET knows that this class shall only contain static data? If you’re calling the DeleteRecursive method, the child objects won’t be deleted, because the class is marked as Static.

So the attribute prevents the deletion of objects that contains static data.

Here’s the example code:



    class Price : ValueObject




Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>