Example #1
0
        private void DropTable(SqlTable table)
        {
            foreach (var subItem in table.Dependencies)
            {
                _syncScript.Add(new SyncAction
                {
                    Name = subItem.Name,
                    Text = subItem.DropScript(),
                    Type = SyncActionType.DropFK
                });
            }

            _syncScript.Add(new SyncAction
            {
                Name = table.Name,
                Text = table.DropScript(),
                Type = SyncActionType.DropTable
            });
        }