diff --git a/Zurnal/Domain/UseCase/UserUseCase.cs b/Zurnal/Domain/UseCase/UserUseCase.cs index 4b46c67..3c4143b 100644 --- a/Zurnal/Domain/UseCase/UserUseCase.cs +++ b/Zurnal/Domain/UseCase/UserUseCase.cs @@ -1,5 +1,6 @@ using Zurnal.Data.Repository; using Zurnal.domain.Models; +using Zurnal.RemaDateBase; namespace Zurnal.Domain.UseCase { diff --git a/Zurnal/RemaDateBase/Interfase/IGroupRepository.cs b/Zurnal/RemaDateBase/Interfase/IGroupRepository.cs index f637828..6531bfe 100644 --- a/Zurnal/RemaDateBase/Interfase/IGroupRepository.cs +++ b/Zurnal/RemaDateBase/Interfase/IGroupRepository.cs @@ -3,6 +3,8 @@ using System.Text.RegularExpressions; using Zurnal.domain.Models; using Group = System.Text.RegularExpressions.Group; +namespace Zurnal.RemaDateBase +{ public interface IGroupRepository { void AddGroup(Group group); @@ -14,4 +16,4 @@ public interface IGroupRepository bool RemoveGroupById(int groupID); bool UpdateGroupById(int groupID, GroupLocalEntity updatedGroup); } - \ No newline at end of file +} \ No newline at end of file diff --git a/Zurnal/RemaDateBase/RemoutDateBase.cs b/Zurnal/RemaDateBase/RemoutDateBase.cs index 0591a96..2da464b 100644 --- a/Zurnal/RemaDateBase/RemoutDateBase.cs +++ b/Zurnal/RemaDateBase/RemoutDateBase.cs @@ -8,10 +8,11 @@ public class RemoteDateBaseContext : DbContext public DbSet Group { get; set; } public DbSet User { get; set; } public DbSet Presence { get; set; } + public object Groups { get; internal set; } protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { - optionsBuilder.UseNpgsql("Host=45.67.56.214;Port=5432;Username=postgres;Password= ;Database=user1"); + optionsBuilder.UseNpgsql("Host=localhost;Port=5432;Username=postgres;Password=123;Database=postgres"); } protected override void OnModelCreating(ModelBuilder modelBuilder) diff --git a/Zurnal/obj/Debug/net8.0/Zurnal.AssemblyInfo.cs b/Zurnal/obj/Debug/net8.0/Zurnal.AssemblyInfo.cs index ac0d0cf..2786515 100644 --- a/Zurnal/obj/Debug/net8.0/Zurnal.AssemblyInfo.cs +++ b/Zurnal/obj/Debug/net8.0/Zurnal.AssemblyInfo.cs @@ -13,7 +13,7 @@ using System.Reflection; [assembly: System.Reflection.AssemblyCompanyAttribute("Zurnal")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+1b2b3fc51b8e6c70458156ed95a4cc212f9e51a9")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+ac0c8401da4b7e21c62352026c9fecef06f27728")] [assembly: System.Reflection.AssemblyProductAttribute("Zurnal")] [assembly: System.Reflection.AssemblyTitleAttribute("Zurnal")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] diff --git a/Zurnal/obj/Debug/net8.0/Zurnal.AssemblyInfoInputs.cache b/Zurnal/obj/Debug/net8.0/Zurnal.AssemblyInfoInputs.cache index 323e6ae..c28ec03 100644 --- a/Zurnal/obj/Debug/net8.0/Zurnal.AssemblyInfoInputs.cache +++ b/Zurnal/obj/Debug/net8.0/Zurnal.AssemblyInfoInputs.cache @@ -1 +1 @@ -e6b6f9e54fa4ba82e681a5a3ba9349d7912311711fddca257c129394bd4b3c36 +121cf440d2f05aa006ed4b5b711149fe4ec7b4624f8cd2c630bef170501bc669