diff --git a/SoftwareInstallation/SoftwareInstallationBusinessLogic/BusinessLogic/BackUpLogic.cs b/SoftwareInstallation/SoftwareInstallationBusinessLogic/BusinessLogic/BackUpLogic.cs
index bda90ea..930cf8c 100644
--- a/SoftwareInstallation/SoftwareInstallationBusinessLogic/BusinessLogic/BackUpLogic.cs
+++ b/SoftwareInstallation/SoftwareInstallationBusinessLogic/BusinessLogic/BackUpLogic.cs
@@ -83,9 +83,9 @@ namespace SoftwareInstallationBusinessLogic.BusinessLogic
}
_logger.LogDebug("Create zip and remove folder");
- // архивируем
+
ZipFile.CreateFromDirectory(model.FolderName, fileName);
- // удаляем папку
+
dirInfo.Delete(true);
}
catch (Exception)
diff --git a/SoftwareInstallation/SoftwareInstallationDataBaseImplement/Migrations/20230421190828_InitDB.Designer.cs b/SoftwareInstallation/SoftwareInstallationDataBaseImplement/Migrations/20230505052151_InitDb.Designer.cs
similarity index 99%
rename from SoftwareInstallation/SoftwareInstallationDataBaseImplement/Migrations/20230421190828_InitDB.Designer.cs
rename to SoftwareInstallation/SoftwareInstallationDataBaseImplement/Migrations/20230505052151_InitDb.Designer.cs
index bac7ab4..8538730 100644
--- a/SoftwareInstallation/SoftwareInstallationDataBaseImplement/Migrations/20230421190828_InitDB.Designer.cs
+++ b/SoftwareInstallation/SoftwareInstallationDataBaseImplement/Migrations/20230505052151_InitDb.Designer.cs
@@ -12,8 +12,8 @@ using SoftwareInstallationDataBaseImplement;
namespace SoftwareInstallationDataBaseImplement.Migrations
{
[DbContext(typeof(SoftwareInstallationDataBase))]
- [Migration("20230421190828_InitDB")]
- partial class InitDB
+ [Migration("20230505052151_InitDb")]
+ partial class InitDb
{
///
protected override void BuildTargetModel(ModelBuilder modelBuilder)
diff --git a/SoftwareInstallation/SoftwareInstallationDataBaseImplement/Migrations/20230421190828_InitDB.cs b/SoftwareInstallation/SoftwareInstallationDataBaseImplement/Migrations/20230505052151_InitDb.cs
similarity index 99%
rename from SoftwareInstallation/SoftwareInstallationDataBaseImplement/Migrations/20230421190828_InitDB.cs
rename to SoftwareInstallation/SoftwareInstallationDataBaseImplement/Migrations/20230505052151_InitDb.cs
index 2ff4e95..e12ccd6 100644
--- a/SoftwareInstallation/SoftwareInstallationDataBaseImplement/Migrations/20230421190828_InitDB.cs
+++ b/SoftwareInstallation/SoftwareInstallationDataBaseImplement/Migrations/20230505052151_InitDb.cs
@@ -6,7 +6,7 @@ using Microsoft.EntityFrameworkCore.Migrations;
namespace SoftwareInstallationDataBaseImplement.Migrations
{
///
- public partial class InitDB : Migration
+ public partial class InitDb : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
diff --git a/SoftwareInstallation/SoftwareInstallationDataBaseImplement/SoftwareInstallationDataBase.cs b/SoftwareInstallation/SoftwareInstallationDataBaseImplement/SoftwareInstallationDataBase.cs
index 1910dc2..5036f5d 100644
--- a/SoftwareInstallation/SoftwareInstallationDataBaseImplement/SoftwareInstallationDataBase.cs
+++ b/SoftwareInstallation/SoftwareInstallationDataBaseImplement/SoftwareInstallationDataBase.cs
@@ -9,7 +9,7 @@ namespace SoftwareInstallationDataBaseImplement
{
if (optionsBuilder.IsConfigured == false)
{
- optionsBuilder.UseSqlServer(@"Data Source=COMP-AVZH\SQLEXPRESS;Initial Catalog=SoftwareInstallationDataBaseFulllab7;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True");
+ optionsBuilder.UseSqlServer(@"Data Source=COMP-AVZH\SQLEXPRESS;Initial Catalog=SoftwareInstallationDataBaseFull;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True");
}
base.OnConfiguring(optionsBuilder);
}