Beispiel #1
0
        private void CreateObject(SqlObject obj)
        {
            switch (obj.Type)
            {
            case SqlObjectType.Table:
                TablesSynchroniser.CreateTable(obj as SqlTable, _syncScript);
                break;

            default:
                _syncScript.Add(new SyncAction
                {
                    Name = obj.Name,
                    Text = obj.CreateScript(),
                    Type = GetCreateActionType(obj.Type)
                });
                break;
            }
        }
Beispiel #2
0
        private void UpdateTables(SqlTable source, SqlTable dest)
        {
            TablesSynchroniser sync = new TablesSynchroniser(source, dest);

            sync.FillScript(_syncScript);
        }