Assembly: EPiServer.Data (in EPiServer.Data.dll) Version: 8.0.0
C# |
---|
public class DynamicDataSerializer |
Serializes and Deserializes Dynamic Data Store objects. The serialized format is XML.
Name | Summary | Status |
---|---|---|
Deserialize | Deserializes the specified objects element and saves them to Dynamic Data Store | public |
DynamicDataSerializer Constructor | Initializes a new instance of the DynamicDataSerializer class. | public |
DynamicDataSerializer Constructor (Action(Exception)) | Initializes a new instance of the DynamicDataSerializer class. | public |
GetIdentity | Extracts the identity from the object if it has one. | public, static |
GetOriginalType | Gets the Type of the current object, ensuring that the eventual type that could be generated by a proxy interceptor is ignored. | public, static |
Serialize(Identity, String) | Serializes the dynamic data store item with given identity in given store. | public |
Serialize(IEnumerable(IdentityStoreMap)) | Serializes the dynamic data store items with given identity/storename. | public |
SetIdentity | Sets the identity into the object if supported | public, static |
ToPropertyBag(Object) | Create a PropertyBag instance and populates it with its properties The algorith for extracting properties is as follows: 1) Property must a have a getter and setter 2a) Getter must be public OR 2b) The class must be marked either with the DataContractAttribute or EPiServerDataContractAttribute and the property must be marked either with the DataMemberAttribute or EPiServerDataMemberAttribute | public, static |
ToPropertyBag(Object, IEnumerable(String)) | Create a PropertyBag instance and populates it with its properties | public, static |
Name | Summary | Status |
---|---|---|
IdMap | If the ids should be remapped during deserialization then a map of new identities should be passed in. This is e.g. the case when running mirroring to same site. | public |
Name | Summary | Status |
---|---|---|
DeserializedObject | Occurs when a DDS object is deserialized but not yet saved to DDS. An eventhandler has possibility to alter object or cancel save operation. | public |
DeserializingFromXml | Occurs at deserilalization for items that has been modified by event SerializingToXml. | public |
SerializingObject | Occurs when a DDS object is to be serialized. An eventhandler has possibility to alter object or cancel save operation. | public |
SerializingToXml | Occurs when a DDS object or a object reference has been serialized. An eventhandler has possibility to replace the serialized format of the object. If an item is modified then an eventhandler to DeserializingFromXml must be registered to handle recreation of object. | public |