Example #1
0
        private void DropTables()
        {
            LogMessage("Generating dropping references");
            if (_options.TableOptions.DropReferences)
            {
                _tables.SelectMany(x => x.GetReferences()).ToList().ForEach(x => _dmp.DropForeignKey(x));
            }

            LogMessage("Generating dropping tables");
            if (_options.TableOptions.DropTables)
            {
                _tables.ForEach(x => _dmp.DropTable(x, _options.TableOptions.CheckIfTableExists));
            }
        }