Exemplo n.º 1
0
            public void DragDrop_SaveStructure(AppObject appobj)
            {
                var dobj = appobj as DatabaseAppObject;

                if (dobj != null)
                {
                    string dbname = dobj.DatabaseName;
                    string fn     = System.IO.Path.Combine(Node.FileSystemPath, (dbname ?? "") + ".ddf");
                    CopyDbWizard.Run(dobj.FindDatabaseConnection(Node.ConnPack).CloneSource(), new DatabaseStructureWriter {
                        FilePlace = FilePlaceAddonType.PlaceFromVirtualFile(fn)
                    });
                }
            }
Exemplo n.º 2
0
 public override IDatabaseWriter GetWriter(string file, IDatabaseSource src)
 {
     return(new PostgreNativeDumpWriter {
         FilePlace = FilePlaceAddonType.PlaceFromVirtualFile(file)
     });
 }