From 05501e2170ce884b749ff1c58aba8f76d0ae653f Mon Sep 17 00:00:00 2001 From: Vladislav_396ntk Date: Tue, 30 Apr 2024 12:56:27 +0400 Subject: [PATCH] fix --- .../CarpentryWorkshopDatabase.cs | 2 +- ...te.Designer.cs => 20240430082941_InitialCreate.Designer.cs} | 2 +- ...190111_InitialCreate.cs => 20240430082941_InitialCreate.cs} | 0 CarpentryWorkshop/CarpentryWorkshopView/FormMain.cs | 3 ++- 4 files changed, 4 insertions(+), 3 deletions(-) rename CarpentryWorkshop/CarpentryWorkshopDatabaseImplement/Migrations/{20240427190111_InitialCreate.Designer.cs => 20240430082941_InitialCreate.Designer.cs} (99%) rename CarpentryWorkshop/CarpentryWorkshopDatabaseImplement/Migrations/{20240427190111_InitialCreate.cs => 20240430082941_InitialCreate.cs} (100%) diff --git a/CarpentryWorkshop/CarpentryWorkshopDatabaseImplement/CarpentryWorkshopDatabase.cs b/CarpentryWorkshop/CarpentryWorkshopDatabaseImplement/CarpentryWorkshopDatabase.cs index 0537949..6e13c81 100644 --- a/CarpentryWorkshop/CarpentryWorkshopDatabaseImplement/CarpentryWorkshopDatabase.cs +++ b/CarpentryWorkshop/CarpentryWorkshopDatabaseImplement/CarpentryWorkshopDatabase.cs @@ -14,7 +14,7 @@ namespace CarpentryWorkshopDatabaseImplement { if (optionsBuilder.IsConfigured == false) { - optionsBuilder.UseNpgsql(@"Host=localhost;Port=5432;Database=CarpentryWorkshopDatabaseLab51;Username=postgres;Password=postgres"); + optionsBuilder.UseNpgsql(@"Host=localhost;Port=5432;Database=CarpentryWorkshopDatabaseLab6;Username=postgres;Password=postgres"); } base.OnConfiguring(optionsBuilder); } diff --git a/CarpentryWorkshop/CarpentryWorkshopDatabaseImplement/Migrations/20240427190111_InitialCreate.Designer.cs b/CarpentryWorkshop/CarpentryWorkshopDatabaseImplement/Migrations/20240430082941_InitialCreate.Designer.cs similarity index 99% rename from CarpentryWorkshop/CarpentryWorkshopDatabaseImplement/Migrations/20240427190111_InitialCreate.Designer.cs rename to CarpentryWorkshop/CarpentryWorkshopDatabaseImplement/Migrations/20240430082941_InitialCreate.Designer.cs index 1024bdf..355fdc0 100644 --- a/CarpentryWorkshop/CarpentryWorkshopDatabaseImplement/Migrations/20240427190111_InitialCreate.Designer.cs +++ b/CarpentryWorkshop/CarpentryWorkshopDatabaseImplement/Migrations/20240430082941_InitialCreate.Designer.cs @@ -12,7 +12,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; namespace CarpentryWorkshopDatabaseImplement.Migrations { [DbContext(typeof(CarpentryWorkshopDatabase))] - [Migration("20240427190111_InitialCreate")] + [Migration("20240430082941_InitialCreate")] partial class InitialCreate { /// diff --git a/CarpentryWorkshop/CarpentryWorkshopDatabaseImplement/Migrations/20240427190111_InitialCreate.cs b/CarpentryWorkshop/CarpentryWorkshopDatabaseImplement/Migrations/20240430082941_InitialCreate.cs similarity index 100% rename from CarpentryWorkshop/CarpentryWorkshopDatabaseImplement/Migrations/20240427190111_InitialCreate.cs rename to CarpentryWorkshop/CarpentryWorkshopDatabaseImplement/Migrations/20240430082941_InitialCreate.cs diff --git a/CarpentryWorkshop/CarpentryWorkshopView/FormMain.cs b/CarpentryWorkshop/CarpentryWorkshopView/FormMain.cs index 7cde27c..6372a79 100644 --- a/CarpentryWorkshop/CarpentryWorkshopView/FormMain.cs +++ b/CarpentryWorkshop/CarpentryWorkshopView/FormMain.cs @@ -43,7 +43,8 @@ namespace CarpentryWorkshopView { dataGridView.DataSource = list; dataGridView.Columns[1].Visible = false; - + dataGridView.Columns[2].Visible = false; + dataGridView.Columns[3].Visible = false; } _logger.LogInformation("Загрузка продуктов"); }