Skip to content

Commit

Permalink
Back up helper modified
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandrFirst committed Nov 15, 2021
1 parent 83871b4 commit 7785efe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FireSaverApi/Helpers/BackupHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static void BackupDB(DatabaseContext dbContext, BackupModel backupModel)

public static void RestoreDB(DatabaseContext dbContext, BackupModel backupModel)
{
var query = @$"RESTORE DATABASE {backupModel.DbName} Adventureworks FROM DISK = '{backupModel.BackupDir}\{backupModel.DbName}.bak'";
var query = @$"RESTORE DATABASE {backupModel.DbName} FROM DISK = '{backupModel.BackupDir}\{backupModel.DbName}.bak'";
dbContext.Database.ExecuteSqlRaw(query);
}
}
Expand Down

0 comments on commit 7785efe

Please sign in to comment.