лабу сдал

This commit is contained in:
maxnes3 2023-12-14 11:05:13 +04:00
parent 290b40fe1c
commit bbc6991994
9 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -398,3 +398,4 @@ FodyWeavers.xsd
# JetBrains Rider
*.sln.iml
*.dll

View File

@ -14,7 +14,7 @@ namespace DateBaseImplement
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
if (!optionsBuilder.IsConfigured)
optionsBuilder.UseNpgsql(@"Host=localhost;Port=5432;Database=COP;Username=postgres;Password=postgres");
optionsBuilder.UseNpgsql(@"Host=localhost;Port=5432;Database=COPArtyom;Username=courseuser;Password=courseuser");
base.OnConfiguring(optionsBuilder);
}

View File

@ -30,7 +30,7 @@ namespace DateBaseImplement.Models
public void Update(TypeBindingModel model)
{
if (model == null) return;
model.Name = Name;
Name = model.Name;
}
public TypeViewModel GetViewModel => new()

Binary file not shown.