public override void XmlAppend(XmlNode node) { try { var oDoc = node.OwnerDocument; node.AddAttribute("key", this.Key); node.AddAttribute("projectName", this.ProjectName); node.AddAttribute("enableCustomChangeEvents", this.EnableCustomChangeEvents); node.AddAttribute("supportLegacySearchObject", this.SupportLegacySearchObject); node.AddAttribute("useUTCTime", this.UseUTCTime.ToString()); node.AddAttribute("version", this.Version); node.AddAttribute("companyName", this.CompanyName); node.AddAttribute("emitSafetyScripts", this.EmitSafetyScripts); node.AddAttribute("tenantColumnName", this.TenantColumnName); node.AddAttribute("tenantPrefix", this.TenantPrefix); node.AddAttribute("defaultNamespace", this.DefaultNamespace); node.AddAttribute("storedProcedurePrefix", this.StoredProcedurePrefix); var databaseNode = oDoc.CreateElement("database"); this.Database.XmlAppend(databaseNode); node.AppendChild(databaseNode); var versionHistoryListNode = oDoc.CreateElement("versionHistoryList"); node.AppendChild(versionHistoryListNode); _versionHistoryList.XmlAppend(versionHistoryListNode); } catch (Exception ex) { throw; } }
public override void XmlAppend(XmlNode node) { try { var oDoc = node.OwnerDocument; XmlHelper.AddAttribute(node, "key", this.Key); XmlHelper.AddAttribute(node, "projectName", this.ProjectName); XmlHelper.AddAttribute(node, "transformNames", this.TransformNames); XmlHelper.AddAttribute(node, "enableCustomChangeEvents", this.EnableCustomChangeEvents); XmlHelper.AddAttribute(node, "supportLegacySearchObject", this.SupportLegacySearchObject); XmlHelper.AddAttribute(node, "useUTCTime", this.UseUTCTime.ToString()); XmlHelper.AddAttribute(node, "version", this.Version); XmlHelper.AddAttribute(node, "companyName", this.CompanyName); XmlHelper.AddAttribute(node, "emitSafetyScripts", this.EmitSafetyScripts); XmlHelper.AddAttribute(node, "tenantColumnName", this.TenantColumnName); XmlHelper.AddAttribute(node, "tenantPrefix", this.TenantPrefix); XmlHelper.AddAttribute(node, "allowMocks", this.AllowMocks); if (!string.IsNullOrEmpty(this.ModuleName)) { XmlHelper.AddAttribute(node, "moduleName", this.ModuleName); } XmlHelper.AddAttribute(node, "companyAbbreviation", this.CompanyAbbreviation); XmlHelper.AddAttribute(node, "defaultNamespace", this.DefaultNamespace); XmlHelper.AddAttribute(node, "storedProcedurePrefix", this.StoredProcedurePrefix); //var userInterfaceNode = oDoc.CreateElement("userInterface"); //this.UserInterface.XmlAppend(userInterfaceNode); //node.AppendChild(userInterfaceNode); var copyright = oDoc.CreateNode(XmlNodeType.Element, "copyright", string.Empty); var copyright2 = oDoc.CreateCDataSection("copyright"); copyright2.Value = this.Copyright; copyright.AppendChild(copyright2); node.AppendChild(copyright); var databaseNode = oDoc.CreateElement("database"); this.Database.XmlAppend(databaseNode); node.AppendChild(databaseNode); //XmlHelper.AddAttribute(node, "createdDate", _createdDate.ToString("yyyy-MM-dd HH:mm:ss", System.Globalization.CultureInfo.InvariantCulture)); var versionHistoryListNode = oDoc.CreateElement("versionHistoryList"); node.AppendChild(versionHistoryListNode); _versionHistoryList.XmlAppend(versionHistoryListNode); XmlHelper.AddAttribute(node, "sqlType", this.SQLServerType.ToString()); XmlHelper.AddAttribute(node, "efversion", this.EFVersion.ToString()); XmlHelper.AddAttribute(node, "frameworkVersion", this.FrameworkVersion.ToString()); if (this.MetaData.Count > 0) { var metadataNode = oDoc.CreateElement("metadata"); this.MetaData.XmlAppend(metadataNode); node.AppendChild(metadataNode); } } catch (Exception ex) { throw; } }