IAmorphousData MembersNFX Class Library

[This is preliminary documentation and is subject to change.]

The IAmorphousData type exposes the following members.
Methods

  NameDescription
Public methodAfterLoad
Invoked to allow the entity (such as a row) to hydrate its fields/state from AmorphousData bag. For example, this may be used to reconstruct some temporary object state that is not stored as a part of established business schema. The operation is performed per particular targetName (name of physical backend). Simply put, this method allows business code to "specify what to do after object gets loaded from THE PARTICULAR TARGET backend store". An example: suppose current MongoDB collection stores 3 fields for name, and we want to collapse First/Last/Middle name fields into one field. If we change rowschema then it will only contain 1 field which is not present in the database, however those 'older' fields will get populated into AmorphousData giving us an option to merge older 3 fields into 1 within AfterLoad() implementation
Public methodBeforeSave
Invoked to allow the entity (such as a row) to transform its state into AmorphousData bag. For example, this may be usefull to store extra data that is not a part of established business schema. The operation is performed per particular targetName (name of physical backend). Simply put, this method allows business code to "specify what to do before object gets saved in THE PARTICULAR TARGET backend store"
Back to Top
Properties

  NameDescription
Public propertyAmorphousData
Returns data that does not comply with known schema (dynamic data). The field names are NOT case-sensitive
Public propertyAmorphousDataEnabled
When true, enabled amorphous data behaviour, i.e. copying of amorphous data between rows. When false, the amorphous data is ignored as-if the type did not implement this interface This is needed for security, i.e. on the web returning false will prevent injection via posted forms
Back to Top
See Also