This commit is contained in:
Vladislav_396ntk 2024-04-30 12:56:27 +04:00
parent 9e67911aff
commit 05501e2170
4 changed files with 4 additions and 3 deletions

View File

@ -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);
}

View File

@ -12,7 +12,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
namespace CarpentryWorkshopDatabaseImplement.Migrations
{
[DbContext(typeof(CarpentryWorkshopDatabase))]
[Migration("20240427190111_InitialCreate")]
[Migration("20240430082941_InitialCreate")]
partial class InitialCreate
{
/// <inheritdoc />

View File

@ -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("Загрузка продуктов");
}