调用数据库备份方法备份数据库

This commit is contained in:
Falcon 2024-07-24 17:16:56 +08:00
parent eebb7d067f
commit 440970632c

View File

@ -335,7 +335,8 @@ namespace CalendarNotepad
return; return;
} }
var filePath = sdlg.FileName; var filePath = sdlg.FileName;
File.Copy(this.Db.SqliteDbfile,filePath); //File.Copy(this.Db.SqliteDbfile,filePath);
this.Db.DbMaintenance.BackupDataBase(null,filePath);
MessageBox.Show("备份完成"); MessageBox.Show("备份完成");
} }