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:
@@ -38,7 +38,7 @@ namespace AdvertsingProfitControl
|
||||
/// <param name="writer"></param>
|
||||
private void BuildReportBackPage(DateTime date, ref HtmlTextWriter writer)
|
||||
{
|
||||
var db = new AdvertisingProfitControlModel();
|
||||
var db = new AdvertisingProfitControlDbContext();
|
||||
var dateRecord = db.WeekEndingDates.SingleOrDefault(x => x.EndingDate == date);
|
||||
var invoices = db.Invoices.Where(x => x.FkDateId == dateRecord.Id).ToList();
|
||||
var weeklySale = db.WeeklySales.SingleOrDefault(x => x.FkDateId == dateRecord.Id);
|
||||
|
||||
Reference in New Issue
Block a user