private void PairTables() { foreach (TableStructure tsrc in m_src.Tables) { if (IsPaired(tsrc)) { continue; } foreach (TableStructure tdst in m_dst.Tables) { if (DbDiffTool.EqualFullNames(tsrc.FullName, tdst.FullName, m_options) && !IsPaired(tdst)) { PairObjects(tsrc, tdst); break; } } //TableStructure tdst = m_dst.FindTable(tsrc.FullName); //if (tdst != null) PairObjects(tsrc, tdst); } if (m_options.AllowPairRenamedTables) { // snazime se tabulky sparovat na zaklade stejnych jmen VSECH sloupcu foreach (TableStructure tsrc in m_src.Tables) { if (IsPaired(tsrc)) { continue; } foreach (TableStructure tdst in m_dst.Tables) { if (DbDiffTool.EqualColumnNames(tsrc, tdst) && !IsPaired(tdst)) { PairObjects(tsrc, tdst); break; } } } } foreach (TableStructure tsrc in m_src.Tables) { TableStructure tdst = FindPair(tsrc); if (tdst != null) { PairTableContent(tsrc, tdst); } } }
private void PairSpecificObjects() { foreach (SpecificObjectStructure osrc in m_src.GetAllSpecificObjects()) { if (IsPaired(osrc)) { continue; } foreach (SpecificObjectStructure odst in m_dst.GetAllSpecificObjects()) { if (odst.ObjectType == osrc.ObjectType && DbDiffTool.EqualFullNames(osrc.ObjectName, odst.ObjectName, m_options)) { if (!IsPaired(odst)) { PairObjects(osrc, odst); } } } } }
private void PairDomains() { foreach (DomainStructure dsrc in m_src.Domains) { if (IsPaired(dsrc)) { continue; } foreach (DomainStructure ddst in m_dst.Domains) { if (DbDiffTool.EqualFullNames(dsrc.FullName, ddst.FullName, m_options)) { if (!IsPaired(ddst)) { PairObjects(dsrc, ddst); } } } } }