Click or drag to resize

EntityCoreTFieldsEntity2Xml 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.7.0.0 (5.7.0)
Syntax
protected virtual void Entity2Xml(
	string rootNodeName,
	XmlWriter writer,
	Dictionary<Guid, IEntityCore> processedObjectIDs,
	XmlFormatAspect aspects,
	bool isRootElement,
	bool emitEntityType
)

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 method 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