Implemented database backups and restores into the AdvertisingProfitControlData DLL and added a form, DatabaseRecovery, to manage the backups and restores. Updated the installer to include the data DLL file into the install bundle.
This commit is contained in:
@@ -11,7 +11,7 @@ namespace AdvertsingProfitControl
|
||||
{
|
||||
InitializeComponent();
|
||||
labelProductVerion.Text = $@"Advertising Profit Control Version: {Assembly.GetEntryAssembly().GetName().Version}";
|
||||
var db = new AdvertisingProfitControlModel();
|
||||
var db = new AdvertisingProfitControlDbContext();
|
||||
var version = db.Versions.SingleOrDefault(x => x.Id == 1);
|
||||
databaseVersionLabel.Text = version == null ? @"Database Version: N/A" : $@"Database Version: {version.VersionNumber}";
|
||||
reportGeneratingVersionLabel.Text = @"Report Generating Engine Version: " + ReportGenerator.Version;
|
||||
|
||||
Reference in New Issue
Block a user