public void Build() { ConnectionStringsSectionNode node = hierarchy.FindNodeByType(typeof(ConnectionStringsSectionNode)) as ConnectionStringsSectionNode; if (null == node) { LogError(hierarchy.RootNode, Resources.ExceptionMissingConnectionStrings); return; } for (int index = 0; index < odp10ConnectionSettings.ODP10ConnectionsData.Count; ++index) { ODP10ConnectionData odp10Connection = odp10ConnectionSettings.ODP10ConnectionsData.Get(index); ConnectionStringSettingsNode connectionStringNode = hierarchy.FindNodeByName(node, odp10Connection.Name) as ConnectionStringSettingsNode; if (null == connectionStringNode) { LogError(node, string.Format(CultureInfo.CurrentUICulture, Resources.ExceptionConnectionStringMissing, odp10Connection.Name)); continue; } ODP10ConnectionElementNode odp10ElementNode = new ODP10ConnectionElementNode(); foreach (ODP10PackageData packageData in odp10Connection.Packages) { odp10ElementNode.AddNode(new ODP10PackageElementNode(packageData)); } connectionStringNode.AddNode(odp10ElementNode); } }
public void Build() { ConnectionStringsSectionNode node = hierarchy.FindNodeByType(typeof(ConnectionStringsSectionNode)) as ConnectionStringsSectionNode; if (null == node) { LogError(hierarchy.RootNode, Resources.ExceptionMissingConnectionStrings); return; } for (int index = 0; index < odp10ConnectionSettings.ODP10ConnectionsData.Count; ++index) { ODP10ConnectionData odp10Connection = odp10ConnectionSettings.ODP10ConnectionsData.Get(index); ConnectionStringSettingsNode connectionStringNode = hierarchy.FindNodeByName(node, odp10Connection.Name) as ConnectionStringSettingsNode; if (null == connectionStringNode) { LogError(node, string.Format(CultureInfo.CurrentUICulture, Resources.ExceptionConnectionStringMissing, odp10Connection.Name)); continue; } ODP10ConnectionElementNode odp10ElementNode = new ODP10ConnectionElementNode(); foreach (ODP10PackageData packageData in odp10Connection.Packages) { odp10ElementNode.AddNode(new ODP10PackageElementNode(packageData)); } connectionStringNode.AddNode(odp10ElementNode); } }
protected override void OnExecuted(EventArgs e) { base.OnExecuted(e); ODP10ConnectionElementNode node = ChildNode as ODP10ConnectionElementNode; Debug.Assert(null != node, "Expected ODP10ConnectionElementNode"); node.AddNode(new OraclePackageElementNode()); }