EntityBase2Entity2Xml Method |
Produces the actual XML for this entity, recursively. Because it recurses through referenced entities, it keeps track of which objects are processed
so cyclic references are not resulting in cyclic recursion and thus a crash.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.8.0.0 (5.8.21.0111)
Syntax protected override void Entity2Xml(
string rootNodeName,
XmlWriter writer,
Dictionary<Guid, IEntityCore> processedObjectIDs,
XmlFormatAspect aspects,
bool isRootElement,
bool emitEntityType
)
Protected Overrides Sub Entity2Xml (
rootNodeName As String,
writer As XmlWriter,
processedObjectIDs As Dictionary(Of Guid, IEntityCore),
aspects As XmlFormatAspect,
isRootElement As Boolean,
emitEntityType As Boolean
)
Parameters
- rootNodeName
- Type: SystemString
name of root element to use when building a complete XML representation of this entity. - writer
- Type: System.XmlXmlWriter
The writer to write the output to. - processedObjectIDs
- Type: System.Collections.GenericDictionaryGuid, IEntityCore
Dictionary with ObjectIDs of all the objects already processed. If this entity's ObjectID is in the
Dictionary's key list, a ProcessedObjectReference tag is emitted and the routine simply returns. - aspects
- Type: SD.LLBLGen.Pro.ORMSupportClassesXmlFormatAspect
The aspect flags to control the format of the XML produced - isRootElement
- Type: SystemBoolean
if set to true, the start element produced is the absolute root element of the xml to produce. - emitEntityType
- Type: SystemBoolean
if set to true it will emit the entity type value in the root element as attribute.
See Also