Browse Source

fix conect context

CoolVery 5 months ago
parent
commit
fca2ebde80
1 changed files with 1 additions and 1 deletions
  1. 1 1
      CheckArticlesForSpam/Models/MlgTeamContext.cs

+ 1 - 1
CheckArticlesForSpam/Models/MlgTeamContext.cs

@@ -21,7 +21,7 @@ public partial class MlgTeamContext : DbContext
 
     protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
 #warning To protect potentially sensitive information in your connection string, you should move it out of source code. You can avoid scaffolding the connection string by using the Name= syntax to read it from configuration - see https://go.microsoft.com/fwlink/?linkid=2131148. For more guidance on storing connection strings, see http://go.microsoft.com/fwlink/?LinkId=723263.
-        => optionsBuilder.UseNpgsql("Host=edu.pg.ngknn.ru;Port=5442;Database=mlg_team;Username=31P;Password=12345");
+        => optionsBuilder.UseNpgsql("Host=edu.pg.ngknn.local;Port=5432;Database=mlg_team;Username=31P;Password=12345");
 
     protected override void OnModelCreating(ModelBuilder modelBuilder)
     {