From fdd1193799ecd24edb7473912977ffbd3181542c Mon Sep 17 00:00:00 2001 From: goblinrf Date: Tue, 14 May 2024 14:52:14 +0400 Subject: [PATCH] Done --- AbstractShopBusinessLogic/DinerBusinessLogic.csproj | 1 + AbstractShopBusinessLogic/Implements/SaveToExcel.cs | 2 +- AbstractShopBusinessLogic/Implements/SaveToWord.cs | 2 +- ...ate.Designer.cs => 20240514100733_InitialCreate.Designer.cs} | 2 +- ...2174855_InitialCreate.cs => 20240514100733_InitialCreate.cs} | 0 5 files changed, 4 insertions(+), 3 deletions(-) rename Diner/DinerDatabaseImplements/Migrations/{20240512174855_InitialCreate.Designer.cs => 20240514100733_InitialCreate.Designer.cs} (99%) rename Diner/DinerDatabaseImplements/Migrations/{20240512174855_InitialCreate.cs => 20240514100733_InitialCreate.cs} (100%) diff --git a/AbstractShopBusinessLogic/DinerBusinessLogic.csproj b/AbstractShopBusinessLogic/DinerBusinessLogic.csproj index 70c23e9..8630b0f 100644 --- a/AbstractShopBusinessLogic/DinerBusinessLogic.csproj +++ b/AbstractShopBusinessLogic/DinerBusinessLogic.csproj @@ -9,6 +9,7 @@ + diff --git a/AbstractShopBusinessLogic/Implements/SaveToExcel.cs b/AbstractShopBusinessLogic/Implements/SaveToExcel.cs index 3fd662a..ad0ab46 100644 --- a/AbstractShopBusinessLogic/Implements/SaveToExcel.cs +++ b/AbstractShopBusinessLogic/Implements/SaveToExcel.cs @@ -276,7 +276,7 @@ namespace DinerBusinessLogic.Implements return; } _spreadsheetDocument.WorkbookPart!.Workbook.Save(); - _spreadsheetDocument.Close(); + _spreadsheetDocument.Dispose(); } } } diff --git a/AbstractShopBusinessLogic/Implements/SaveToWord.cs b/AbstractShopBusinessLogic/Implements/SaveToWord.cs index 4ee16bd..ad9e86d 100644 --- a/AbstractShopBusinessLogic/Implements/SaveToWord.cs +++ b/AbstractShopBusinessLogic/Implements/SaveToWord.cs @@ -116,7 +116,7 @@ namespace DinerBusinessLogic.Implements _wordDocument.MainDocumentPart!.Document.Save(); - _wordDocument.Close(); + _wordDocument.Dispose(); } private Table? _lastTable; diff --git a/Diner/DinerDatabaseImplements/Migrations/20240512174855_InitialCreate.Designer.cs b/Diner/DinerDatabaseImplements/Migrations/20240514100733_InitialCreate.Designer.cs similarity index 99% rename from Diner/DinerDatabaseImplements/Migrations/20240512174855_InitialCreate.Designer.cs rename to Diner/DinerDatabaseImplements/Migrations/20240514100733_InitialCreate.Designer.cs index a5de9bf..72d15d1 100644 --- a/Diner/DinerDatabaseImplements/Migrations/20240512174855_InitialCreate.Designer.cs +++ b/Diner/DinerDatabaseImplements/Migrations/20240514100733_InitialCreate.Designer.cs @@ -12,7 +12,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace DinerDatabaseImplement.Migrations { [DbContext(typeof(DinerDatabase))] - [Migration("20240512174855_InitialCreate")] + [Migration("20240514100733_InitialCreate")] partial class InitialCreate { /// diff --git a/Diner/DinerDatabaseImplements/Migrations/20240512174855_InitialCreate.cs b/Diner/DinerDatabaseImplements/Migrations/20240514100733_InitialCreate.cs similarity index 100% rename from Diner/DinerDatabaseImplements/Migrations/20240512174855_InitialCreate.cs rename to Diner/DinerDatabaseImplements/Migrations/20240514100733_InitialCreate.cs