Ejemplo n.º 1
0
        /// <summary>
        /// Get a dictionary containing changes form all supplied EDSs
        /// </summary>
        /// <param name="edsList">List of EDSs to include</param>
        /// <returns>Dictionary of EDS connectionstring and DatabaseMetaChange</returns>
        public static Dictionary <string, DatabaseMetaChange> GetLatestChanges(IEnumerable <EDSSettings> edsList)
        {
            Dictionary <string, DatabaseMetaChange> changes = new Dictionary <string, DatabaseMetaChange>();

            foreach (EDSSettings eds in edsList)
            {
                if (eds.Name.Equals("Template"))
                {
                    continue;
                }

                changes[eds.ConnectionString] =
                    new MetaDataSnapshot(eds.ConnectionString).CompareVerions(Provider.GetLatest(eds));
            }

            return(changes);
        }