Пример #1
0
        public override IEnumerable <string> SqlCommands <TKey>(CommandProvider <TKey> commandProvider, IDbConnection connection)
        {
            var fks = DependentForeignKeys ?? commandProvider.GetDependentForeignKeys(connection, TableInfo);

            foreach (var fk in fks)
            {
                yield return(commandProvider.DropForeignKeyCommand(fk));
            }

            yield return(commandProvider.DropTableCommand(TableInfo));
        }