Example #1
0
            public MigrationPair(
                [NotNull] Migration localMigration,
                [CanBeNull] HistoryRow historyRow)
            {
                Check.NotNull(localMigration, "localMigration");

                LocalMigration = localMigration;
                HistoryRow     = historyRow;
            }
Example #2
0
        public virtual IReadOnlyList <HistoryRow> GetRows([NotNull] out bool historyTableExists)
        {
            IReadOnlyList <HistoryRow> rows;

            try
            {
                rows = GetRows();
                historyTableExists = true;
            }
            catch (DbException)
            {
                // TODO: Log the exception message.
                rows = new HistoryRow[0];
                historyTableExists = false;
            }

            return(rows);
        }