/// <summary> /// Constructor /// Creates a DominDriveDesignModelHasEntityModels link in the same Partition as the given DominDriveDesignModel /// </summary> /// <param name="source">DominDriveDesignModel to use as the source of the relationship.</param> /// <param name="target">EntityModel to use as the target of the relationship.</param> public DominDriveDesignModelHasEntityModels(DominDriveDesignModel source, EntityModel target) : base((source != null ? source.Partition : null), new DslModeling::RoleAssignment[]{new DslModeling::RoleAssignment(DominDriveDesignModelHasEntityModels.DominDriveDesignModelDomainRoleId, source), new DslModeling::RoleAssignment(DominDriveDesignModelHasEntityModels.EntityModelDomainRoleId, target)}, null) { }
public static DslModeling::LinkedElementCollection<DomainEventModel> GetDomainEventModels(DominDriveDesignModel element) { return GetRoleCollection<DslModeling::LinkedElementCollection<DomainEventModel>, DomainEventModel>(element, DominDriveDesignModelDomainRoleId); }
/// <summary> /// Constructor /// Creates a DominDriveDesignModelHasAggregateRootEntity link in the same Partition as the given DominDriveDesignModel /// </summary> /// <param name="source">DominDriveDesignModel to use as the source of the relationship.</param> /// <param name="target">AggregateRootEntities to use as the target of the relationship.</param> public DominDriveDesignModelHasAggregateRootEntity(DominDriveDesignModel source, AggregateRootEntities target) : base((source != null ? source.Partition : null), new DslModeling::RoleAssignment[]{new DslModeling::RoleAssignment(DominDriveDesignModelHasAggregateRootEntity.DominDriveDesignModelDomainRoleId, source), new DslModeling::RoleAssignment(DominDriveDesignModelHasAggregateRootEntity.AggregateRootEntitiesDomainRoleId, target)}, null) { }
public static DslModeling::LinkedElementCollection<AggregateRootEntities> GetAggregateRootEntity(DominDriveDesignModel element) { return GetRoleCollection<DslModeling::LinkedElementCollection<AggregateRootEntities>, AggregateRootEntities>(element, DominDriveDesignModelDomainRoleId); }
public static void SetDominDriveDesignModel(DomainEventModel element, DominDriveDesignModel newDominDriveDesignModel) { DslModeling::DomainRoleInfo.SetLinkedElement(element, DomainEventModelDomainRoleId, newDominDriveDesignModel); }
public virtual void SaveModelAndDiagram(DslModeling::SerializationResult serializationResult, DominDriveDesignModel modelRoot, string modelFileName, BinbinDomainLanguageDiagram diagram, string diagramFileName, global::System.Text.Encoding encoding, bool writeOptionalPropertiesWithDefaultValue) { #region Check Parameters if (serializationResult == null) throw new global::System.ArgumentNullException("serializationResult"); if (string.IsNullOrEmpty(modelFileName)) throw new global::System.ArgumentNullException("modelFileName"); if (diagram == null) throw new global::System.ArgumentNullException("diagram"); if (string.IsNullOrEmpty(diagramFileName)) throw new global::System.ArgumentNullException("diagramFileName"); #endregion if (serializationResult.Failed) return; // Save the model file first using (global::System.IO.MemoryStream modelFileContent = this.InternalSaveModel(serializationResult, modelRoot, modelFileName, encoding, writeOptionalPropertiesWithDefaultValue)) { if (serializationResult.Failed) return; using (global::System.IO.MemoryStream diagramFileContent = this.InternalSaveDiagram(serializationResult, diagram, diagramFileName, encoding, writeOptionalPropertiesWithDefaultValue)) { if (!serializationResult.Failed) { // Only write the contents if there's no error encountered during serialization. if (modelFileContent != null) { using (global::System.IO.FileStream fileStream = new global::System.IO.FileStream(modelFileName, global::System.IO.FileMode.Create, global::System.IO.FileAccess.Write, global::System.IO.FileShare.None)) { using (global::System.IO.BinaryWriter writer = new global::System.IO.BinaryWriter(fileStream, encoding)) { writer.Write(modelFileContent.ToArray()); } } } if (diagramFileContent != null) { using (global::System.IO.FileStream fileStream = new global::System.IO.FileStream(diagramFileName, global::System.IO.FileMode.Create, global::System.IO.FileAccess.Write, global::System.IO.FileShare.None)) { using (global::System.IO.BinaryWriter writer = new global::System.IO.BinaryWriter(fileStream, encoding)) { writer.Write(diagramFileContent.ToArray()); } } } } } } }
public static void SetDominDriveDesignModel(AggregateRootEntities element, DominDriveDesignModel newDominDriveDesignModel) { DslModeling::DomainRoleInfo.SetLinkedElement(element, AggregateRootEntitiesDomainRoleId, newDominDriveDesignModel); }
/// <summary> /// Saves the given diagram to the given file, with default encoding (UTF-8), and optional properties with default value will not /// be written out. /// </summary> /// <param name="serializationResult">Stores serialization result from the save operation.</param> /// <param name="modelRoot">DominDriveDesignModel instance to be saved.</param> /// <param name="modelFileName">Name of the file in which the CanonicalSampleRoot instance will be saved.</param> /// <param name="diagram">BinbinDomainLanguageDiagram to be saved.</param> /// <param name="diagramFileName">Name of the file in which the diagram will be saved.</param> public virtual void SaveModelAndDiagram(DslModeling::SerializationResult serializationResult, DominDriveDesignModel modelRoot, string modelFileName, BinbinDomainLanguageDiagram diagram, string diagramFileName) { this.SaveModelAndDiagram(serializationResult, modelRoot, modelFileName, diagram, diagramFileName, global::System.Text.Encoding.UTF8, false); }
/// <summary> /// Saves the given diagram to the given file, with default encoding (UTF-8). /// </summary> /// <param name="serializationResult">Stores serialization result from the save operation.</param> /// <param name="modelRoot">DominDriveDesignModel instance to be saved.</param> /// <param name="modelFileName">Name of the file in which the CanonicalSampleRoot instance will be saved.</param> /// <param name="diagram">BinbinDomainLanguageDiagram to be saved.</param> /// <param name="diagramFileName">Name of the file in which the diagram will be saved.</param> /// <param name="writeOptionalPropertiesWithDefaultValue">Whether optional properties with default value will be saved.</param> public virtual void SaveModelAndDiagram(DslModeling::SerializationResult serializationResult, DominDriveDesignModel modelRoot, string modelFileName, BinbinDomainLanguageDiagram diagram, string diagramFileName, bool writeOptionalPropertiesWithDefaultValue) { this.SaveModelAndDiagram(serializationResult, modelRoot, modelFileName, diagram, diagramFileName, global::System.Text.Encoding.UTF8, writeOptionalPropertiesWithDefaultValue); }
internal global::System.IO.MemoryStream InternalSaveModel(DslModeling::SerializationResult serializationResult, DominDriveDesignModel modelRoot, string fileName, global::System.Text.Encoding encoding, bool writeOptionalPropertiesWithDefaultValue) { #region Check Parameters global::System.Diagnostics.Debug.Assert(serializationResult != null); global::System.Diagnostics.Debug.Assert(modelRoot != null); global::System.Diagnostics.Debug.Assert(!serializationResult.Failed); #endregion serializationResult.Encoding = encoding; DslModeling::DomainXmlSerializerDirectory directory = this.GetDirectory(modelRoot.Store); global::System.IO.MemoryStream newFileContent = new global::System.IO.MemoryStream(); DslModeling::SerializationContext serializationContext = new DslModeling::SerializationContext(directory, fileName, serializationResult); this.InitializeSerializationContext(modelRoot.Partition, serializationContext, false); // MonikerResolver shouldn't be required in Save operation, so not calling SetupMonikerResolver() here. serializationContext.WriteOptionalPropertiesWithDefaultValue = writeOptionalPropertiesWithDefaultValue; global::System.Xml.XmlWriterSettings settings = BinbinDomainLanguageSerializationHelper.Instance.CreateXmlWriterSettings(serializationContext, false, encoding); using (global::System.Xml.XmlWriter writer = global::System.Xml.XmlWriter.Create(newFileContent, settings)) { this.WriteRootElement(serializationContext, modelRoot, writer); } return newFileContent; }
/// <summary> /// Helper method to create and initialize a new DominDriveDesignModel. /// </summary> internal protected virtual DominDriveDesignModel CreateModelHelper(DslModeling::Partition modelPartition) { DominDriveDesignModel model = new DominDriveDesignModel(modelPartition); return model; }
/// <summary> /// Saves the given model to the given file, with default encoding (UTF-8). /// </summary> /// <param name="serializationResult">Stores serialization result from the save operation.</param> /// <param name="modelRoot">DominDriveDesignModel instance to be saved.</param> /// <param name="fileName">Name of the file in which the DominDriveDesignModel instance will be saved.</param> /// <param name="writeOptionalPropertiesWithDefaultValue">Whether optional properties with default value will be saved.</param> public virtual void SaveModel(DslModeling::SerializationResult serializationResult, DominDriveDesignModel modelRoot, string fileName, bool writeOptionalPropertiesWithDefaultValue) { this.SaveModel(serializationResult, modelRoot, fileName, global::System.Text.Encoding.UTF8, writeOptionalPropertiesWithDefaultValue); }
/// <summary> /// Saves the given model root to the given file, with default encoding (UTF-8), and optional properties with default value will not /// be written out. /// </summary> /// <param name="serializationResult">Stores serialization result from the save operation.</param> /// <param name="modelRoot">DominDriveDesignModel instance to be saved.</param> /// <param name="fileName">Name of the file in which the DominDriveDesignModel instance will be saved.</param> public virtual void SaveModel(DslModeling::SerializationResult serializationResult, DominDriveDesignModel modelRoot, string fileName) { this.SaveModel(serializationResult, modelRoot, fileName, global::System.Text.Encoding.UTF8, false); }
private static void WriteChildElements(DslModeling::SerializationContext serializationContext, DominDriveDesignModel element, global::System.Xml.XmlWriter writer) { // DominDriveDesignModelHasAggregateRootEntity global::System.Collections.ObjectModel.ReadOnlyCollection<DominDriveDesignModelHasAggregateRootEntity> allDominDriveDesignModelHasAggregateRootEntityInstances = DominDriveDesignModelHasAggregateRootEntity.GetLinksToAggregateRootEntity(element); if (!serializationContext.Result.Failed && allDominDriveDesignModelHasAggregateRootEntityInstances.Count > 0) { writer.WriteStartElement("aggregateRootEntity"); foreach (DominDriveDesignModelHasAggregateRootEntity eachDominDriveDesignModelHasAggregateRootEntityInstance in allDominDriveDesignModelHasAggregateRootEntityInstances) { if (serializationContext.Result.Failed) break; DslModeling::DomainClassXmlSerializer relSerializer = serializationContext.Directory.GetSerializer(eachDominDriveDesignModelHasAggregateRootEntityInstance.GetDomainClass().Id); global::System.Diagnostics.Debug.Assert(relSerializer != null, "Cannot find serializer for " + eachDominDriveDesignModelHasAggregateRootEntityInstance.GetDomainClass().Name + "!"); relSerializer.Write(serializationContext, eachDominDriveDesignModelHasAggregateRootEntityInstance, writer); } writer.WriteEndElement(); } // DominDriveDesignModelHasEntityModels global::System.Collections.ObjectModel.ReadOnlyCollection<DominDriveDesignModelHasEntityModels> allDominDriveDesignModelHasEntityModelsInstances = DominDriveDesignModelHasEntityModels.GetLinksToEntityModels(element); if (!serializationContext.Result.Failed && allDominDriveDesignModelHasEntityModelsInstances.Count > 0) { writer.WriteStartElement("entityModels"); foreach (DominDriveDesignModelHasEntityModels eachDominDriveDesignModelHasEntityModelsInstance in allDominDriveDesignModelHasEntityModelsInstances) { if (serializationContext.Result.Failed) break; DslModeling::DomainClassXmlSerializer relSerializer = serializationContext.Directory.GetSerializer(eachDominDriveDesignModelHasEntityModelsInstance.GetDomainClass().Id); global::System.Diagnostics.Debug.Assert(relSerializer != null, "Cannot find serializer for " + eachDominDriveDesignModelHasEntityModelsInstance.GetDomainClass().Name + "!"); relSerializer.Write(serializationContext, eachDominDriveDesignModelHasEntityModelsInstance, writer); } writer.WriteEndElement(); } // DominDriveDesignModelHasDomainServiceModels global::System.Collections.ObjectModel.ReadOnlyCollection<DominDriveDesignModelHasDomainServiceModels> allDominDriveDesignModelHasDomainServiceModelsInstances = DominDriveDesignModelHasDomainServiceModels.GetLinksToDomainServiceModels(element); if (!serializationContext.Result.Failed && allDominDriveDesignModelHasDomainServiceModelsInstances.Count > 0) { writer.WriteStartElement("domainServiceModels"); foreach (DominDriveDesignModelHasDomainServiceModels eachDominDriveDesignModelHasDomainServiceModelsInstance in allDominDriveDesignModelHasDomainServiceModelsInstances) { if (serializationContext.Result.Failed) break; DslModeling::DomainClassXmlSerializer relSerializer = serializationContext.Directory.GetSerializer(eachDominDriveDesignModelHasDomainServiceModelsInstance.GetDomainClass().Id); global::System.Diagnostics.Debug.Assert(relSerializer != null, "Cannot find serializer for " + eachDominDriveDesignModelHasDomainServiceModelsInstance.GetDomainClass().Name + "!"); relSerializer.Write(serializationContext, eachDominDriveDesignModelHasDomainServiceModelsInstance, writer); } writer.WriteEndElement(); } // DominDriveDesignModelHasFactoryModels global::System.Collections.ObjectModel.ReadOnlyCollection<DominDriveDesignModelHasFactoryModels> allDominDriveDesignModelHasFactoryModelsInstances = DominDriveDesignModelHasFactoryModels.GetLinksToFactoryModels(element); if (!serializationContext.Result.Failed && allDominDriveDesignModelHasFactoryModelsInstances.Count > 0) { writer.WriteStartElement("factoryModels"); foreach (DominDriveDesignModelHasFactoryModels eachDominDriveDesignModelHasFactoryModelsInstance in allDominDriveDesignModelHasFactoryModelsInstances) { if (serializationContext.Result.Failed) break; DslModeling::DomainClassXmlSerializer relSerializer = serializationContext.Directory.GetSerializer(eachDominDriveDesignModelHasFactoryModelsInstance.GetDomainClass().Id); global::System.Diagnostics.Debug.Assert(relSerializer != null, "Cannot find serializer for " + eachDominDriveDesignModelHasFactoryModelsInstance.GetDomainClass().Name + "!"); relSerializer.Write(serializationContext, eachDominDriveDesignModelHasFactoryModelsInstance, writer); } writer.WriteEndElement(); } // DominDriveDesignModelHasValueObjectModels global::System.Collections.ObjectModel.ReadOnlyCollection<DominDriveDesignModelHasValueObjectModels> allDominDriveDesignModelHasValueObjectModelsInstances = DominDriveDesignModelHasValueObjectModels.GetLinksToValueObjectModels(element); if (!serializationContext.Result.Failed && allDominDriveDesignModelHasValueObjectModelsInstances.Count > 0) { writer.WriteStartElement("valueObjectModels"); foreach (DominDriveDesignModelHasValueObjectModels eachDominDriveDesignModelHasValueObjectModelsInstance in allDominDriveDesignModelHasValueObjectModelsInstances) { if (serializationContext.Result.Failed) break; DslModeling::DomainClassXmlSerializer relSerializer = serializationContext.Directory.GetSerializer(eachDominDriveDesignModelHasValueObjectModelsInstance.GetDomainClass().Id); global::System.Diagnostics.Debug.Assert(relSerializer != null, "Cannot find serializer for " + eachDominDriveDesignModelHasValueObjectModelsInstance.GetDomainClass().Name + "!"); relSerializer.Write(serializationContext, eachDominDriveDesignModelHasValueObjectModelsInstance, writer); } writer.WriteEndElement(); } // DominDriveDesignModelHasDomainEventModels global::System.Collections.ObjectModel.ReadOnlyCollection<DominDriveDesignModelHasDomainEventModels> allDominDriveDesignModelHasDomainEventModelsInstances = DominDriveDesignModelHasDomainEventModels.GetLinksToDomainEventModels(element); if (!serializationContext.Result.Failed && allDominDriveDesignModelHasDomainEventModelsInstances.Count > 0) { writer.WriteStartElement("domainEventModels"); foreach (DominDriveDesignModelHasDomainEventModels eachDominDriveDesignModelHasDomainEventModelsInstance in allDominDriveDesignModelHasDomainEventModelsInstances) { if (serializationContext.Result.Failed) break; DslModeling::DomainClassXmlSerializer relSerializer = serializationContext.Directory.GetSerializer(eachDominDriveDesignModelHasDomainEventModelsInstance.GetDomainClass().Id); global::System.Diagnostics.Debug.Assert(relSerializer != null, "Cannot find serializer for " + eachDominDriveDesignModelHasDomainEventModelsInstance.GetDomainClass().Name + "!"); relSerializer.Write(serializationContext, eachDominDriveDesignModelHasDomainEventModelsInstance, writer); } writer.WriteEndElement(); } }
/// <summary> /// Reads all instances of relationship DominDriveDesignModelHasDomainEventModels. /// </summary> /// <remarks> /// The caller will position the reader at the open tag of the first XML element inside the relationship tag, so it can be /// either the first instance, or a bogus tag. This method will deserialize all instances and ignore all bogus tags. When the /// method returns, the reader will be positioned at the end tag of the relationship (or EOF if somehow that happens). /// </remarks> /// <param name="serializationContext">Serialization context.</param> /// <param name="element">In-memory DominDriveDesignModel instance that will get the deserialized data.</param> /// <param name="reader">XmlReader to read serialized data from.</param> private static void ReadDominDriveDesignModelHasDomainEventModelsInstances(DslModeling::SerializationContext serializationContext, DominDriveDesignModel element, global::System.Xml.XmlReader reader) { while (!serializationContext.Result.Failed && !reader.EOF && reader.NodeType == global::System.Xml.XmlNodeType.Element) { DslModeling::DomainClassXmlSerializer newDominDriveDesignModelHasDomainEventModelsSerializer = serializationContext.Directory.GetSerializer(DominDriveDesignModelHasDomainEventModels.DomainClassId); global::System.Diagnostics.Debug.Assert(newDominDriveDesignModelHasDomainEventModelsSerializer != null, "Cannot find serializer for DominDriveDesignModelHasDomainEventModels!"); DominDriveDesignModelHasDomainEventModels newDominDriveDesignModelHasDomainEventModels = newDominDriveDesignModelHasDomainEventModelsSerializer.TryCreateInstance (serializationContext, reader, element.Partition) as DominDriveDesignModelHasDomainEventModels; if (newDominDriveDesignModelHasDomainEventModels != null) { DslModeling::DomainRoleInfo.SetRolePlayer (newDominDriveDesignModelHasDomainEventModels, DominDriveDesignModelHasDomainEventModels.DominDriveDesignModelDomainRoleId, element); DslModeling::DomainClassXmlSerializer targetSerializer = serializationContext.Directory.GetSerializer (newDominDriveDesignModelHasDomainEventModels.GetDomainClass().Id); global::System.Diagnostics.Debug.Assert (targetSerializer != null, "Cannot find serializer for " + newDominDriveDesignModelHasDomainEventModels.GetDomainClass().Name + "!"); targetSerializer.Read(serializationContext, newDominDriveDesignModelHasDomainEventModels, reader); } else { // Maybe the relationship is serialized in short-form by mistake. DslModeling::DomainClassXmlSerializer newDomainEventModelOfDominDriveDesignModelHasDomainEventModelsSerializer = serializationContext.Directory.GetSerializer(DomainEventModel.DomainClassId); global::System.Diagnostics.Debug.Assert(newDomainEventModelOfDominDriveDesignModelHasDomainEventModelsSerializer != null, "Cannot find serializer for DomainEventModel!"); DomainEventModel newDomainEventModelOfDominDriveDesignModelHasDomainEventModels = newDomainEventModelOfDominDriveDesignModelHasDomainEventModelsSerializer.TryCreateInstance(serializationContext, reader, element.Partition) as DomainEventModel; if (newDomainEventModelOfDominDriveDesignModelHasDomainEventModels != null) { BinbinDomainLanguageSerializationBehaviorSerializationMessages.ExpectingFullFormRelationship(serializationContext, reader, typeof(DominDriveDesignModelHasDomainEventModels)); element.DomainEventModels.Add(newDomainEventModelOfDominDriveDesignModelHasDomainEventModels); DslModeling::DomainClassXmlSerializer targetSerializer = serializationContext.Directory.GetSerializer (newDomainEventModelOfDominDriveDesignModelHasDomainEventModels.GetDomainClass().Id); global::System.Diagnostics.Debug.Assert (targetSerializer != null, "Cannot find serializer for " + newDomainEventModelOfDominDriveDesignModelHasDomainEventModels.GetDomainClass().Name + "!"); targetSerializer.Read(serializationContext, newDomainEventModelOfDominDriveDesignModelHasDomainEventModels, reader); } else { // Unknown element, skip. DslModeling::SerializationUtilities.Skip(reader); } } } }
/// <summary> /// This method deserializes all child model elements. /// </summary> /// <remarks> /// The caller will position the reader at the open tag of the first child XML element to deserialized. /// This method will read as many child elements as it can. It returns under three circumstances: /// 1) When an unknown child XML element is encountered. In this case, this method will position the reader at the /// open tag of the unknown element. This implies that if the first child XML element is unknown, this method /// should return immediately and do nothing. /// 2) When all child XML elemnets are read. In this case, the reader will be positioned at the end tag of the parent element. /// 3) EOF. /// </remarks> /// <param name="serializationContext">Serialization context.</param> /// <param name="reader">XmlReader to read serialized data from.</param> /// <param name="element">In-memory DominDriveDesignModel instance that will get the deserialized data.</param> private static void ReadChildElements(DslModeling::SerializationContext serializationContext, DominDriveDesignModel element, global::System.Xml.XmlReader reader) { while (!serializationContext.Result.Failed && !reader.EOF && reader.NodeType == global::System.Xml.XmlNodeType.Element) { switch (reader.LocalName) { case "aggregateRootEntity": // Relationship "DominDriveDesignModelHasAggregateRootEntity" if (reader.IsEmptyElement) { // No instance of this relationship, just skip DslModeling::SerializationUtilities.Skip(reader); } else { DslModeling::SerializationUtilities.SkipToFirstChild(reader); // Skip the open tag of <aggregateRootEntity> ReadDominDriveDesignModelHasAggregateRootEntityInstances(serializationContext, element, reader); DslModeling::SerializationUtilities.Skip(reader); // Skip the close tag of </aggregateRootEntity> } break; case "entityModels": // Relationship "DominDriveDesignModelHasEntityModels" if (reader.IsEmptyElement) { // No instance of this relationship, just skip DslModeling::SerializationUtilities.Skip(reader); } else { DslModeling::SerializationUtilities.SkipToFirstChild(reader); // Skip the open tag of <entityModels> ReadDominDriveDesignModelHasEntityModelsInstances(serializationContext, element, reader); DslModeling::SerializationUtilities.Skip(reader); // Skip the close tag of </entityModels> } break; case "domainServiceModels": // Relationship "DominDriveDesignModelHasDomainServiceModels" if (reader.IsEmptyElement) { // No instance of this relationship, just skip DslModeling::SerializationUtilities.Skip(reader); } else { DslModeling::SerializationUtilities.SkipToFirstChild(reader); // Skip the open tag of <domainServiceModels> ReadDominDriveDesignModelHasDomainServiceModelsInstances(serializationContext, element, reader); DslModeling::SerializationUtilities.Skip(reader); // Skip the close tag of </domainServiceModels> } break; case "factoryModels": // Relationship "DominDriveDesignModelHasFactoryModels" if (reader.IsEmptyElement) { // No instance of this relationship, just skip DslModeling::SerializationUtilities.Skip(reader); } else { DslModeling::SerializationUtilities.SkipToFirstChild(reader); // Skip the open tag of <factoryModels> ReadDominDriveDesignModelHasFactoryModelsInstances(serializationContext, element, reader); DslModeling::SerializationUtilities.Skip(reader); // Skip the close tag of </factoryModels> } break; case "valueObjectModels": // Relationship "DominDriveDesignModelHasValueObjectModels" if (reader.IsEmptyElement) { // No instance of this relationship, just skip DslModeling::SerializationUtilities.Skip(reader); } else { DslModeling::SerializationUtilities.SkipToFirstChild(reader); // Skip the open tag of <valueObjectModels> ReadDominDriveDesignModelHasValueObjectModelsInstances(serializationContext, element, reader); DslModeling::SerializationUtilities.Skip(reader); // Skip the close tag of </valueObjectModels> } break; case "domainEventModels": // Relationship "DominDriveDesignModelHasDomainEventModels" if (reader.IsEmptyElement) { // No instance of this relationship, just skip DslModeling::SerializationUtilities.Skip(reader); } else { DslModeling::SerializationUtilities.SkipToFirstChild(reader); // Skip the open tag of <domainEventModels> ReadDominDriveDesignModelHasDomainEventModelsInstances(serializationContext, element, reader); DslModeling::SerializationUtilities.Skip(reader); // Skip the close tag of </domainEventModels> } break; default: return; // Don't know this element. } } }