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:
[Table("PRICES")]
[StaticData]
class Price : ValueObject

