коммит
This commit is contained in:
parent
f54690022a
commit
421e6e478c
@ -83,9 +83,9 @@ namespace SoftwareInstallationBusinessLogic.BusinessLogic
|
|||||||
}
|
}
|
||||||
|
|
||||||
_logger.LogDebug("Create zip and remove folder");
|
_logger.LogDebug("Create zip and remove folder");
|
||||||
// архивируем
|
|
||||||
ZipFile.CreateFromDirectory(model.FolderName, fileName);
|
ZipFile.CreateFromDirectory(model.FolderName, fileName);
|
||||||
// удаляем папку
|
|
||||||
dirInfo.Delete(true);
|
dirInfo.Delete(true);
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
|
@ -12,8 +12,8 @@ using SoftwareInstallationDataBaseImplement;
|
|||||||
namespace SoftwareInstallationDataBaseImplement.Migrations
|
namespace SoftwareInstallationDataBaseImplement.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(SoftwareInstallationDataBase))]
|
[DbContext(typeof(SoftwareInstallationDataBase))]
|
||||||
[Migration("20230421190828_InitDB")]
|
[Migration("20230505052151_InitDb")]
|
||||||
partial class InitDB
|
partial class InitDb
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
@ -6,7 +6,7 @@ using Microsoft.EntityFrameworkCore.Migrations;
|
|||||||
namespace SoftwareInstallationDataBaseImplement.Migrations
|
namespace SoftwareInstallationDataBaseImplement.Migrations
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public partial class InitDB : Migration
|
public partial class InitDb : Migration
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
protected override void Up(MigrationBuilder migrationBuilder)
|
@ -9,7 +9,7 @@ namespace SoftwareInstallationDataBaseImplement
|
|||||||
{
|
{
|
||||||
if (optionsBuilder.IsConfigured == false)
|
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);
|
base.OnConfiguring(optionsBuilder);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user