This commit is contained in:
parent
ac0c8401da
commit
7ee7b5a156
@ -1,5 +1,6 @@
|
|||||||
using Zurnal.Data.Repository;
|
using Zurnal.Data.Repository;
|
||||||
using Zurnal.domain.Models;
|
using Zurnal.domain.Models;
|
||||||
|
using Zurnal.RemaDateBase;
|
||||||
|
|
||||||
namespace Zurnal.Domain.UseCase
|
namespace Zurnal.Domain.UseCase
|
||||||
{
|
{
|
||||||
|
@ -3,6 +3,8 @@ using System.Text.RegularExpressions;
|
|||||||
using Zurnal.domain.Models;
|
using Zurnal.domain.Models;
|
||||||
using Group = System.Text.RegularExpressions.Group;
|
using Group = System.Text.RegularExpressions.Group;
|
||||||
|
|
||||||
|
namespace Zurnal.RemaDateBase
|
||||||
|
{
|
||||||
public interface IGroupRepository
|
public interface IGroupRepository
|
||||||
{
|
{
|
||||||
void AddGroup(Group group);
|
void AddGroup(Group group);
|
||||||
@ -14,4 +16,4 @@ public interface IGroupRepository
|
|||||||
bool RemoveGroupById(int groupID);
|
bool RemoveGroupById(int groupID);
|
||||||
bool UpdateGroupById(int groupID, GroupLocalEntity updatedGroup);
|
bool UpdateGroupById(int groupID, GroupLocalEntity updatedGroup);
|
||||||
}
|
}
|
||||||
|
}
|
@ -8,10 +8,11 @@ public class RemoteDateBaseContext : DbContext
|
|||||||
public DbSet<GroupDao> Group { get; set; }
|
public DbSet<GroupDao> Group { get; set; }
|
||||||
public DbSet<UserDao> User { get; set; }
|
public DbSet<UserDao> User { get; set; }
|
||||||
public DbSet<PresnceDao> Presence { get; set; }
|
public DbSet<PresnceDao> Presence { get; set; }
|
||||||
|
public object Groups { get; internal set; }
|
||||||
|
|
||||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
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)
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||||
|
@ -13,7 +13,7 @@ using System.Reflection;
|
|||||||
[assembly: System.Reflection.AssemblyCompanyAttribute("Zurnal")]
|
[assembly: System.Reflection.AssemblyCompanyAttribute("Zurnal")]
|
||||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
[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.AssemblyProductAttribute("Zurnal")]
|
||||||
[assembly: System.Reflection.AssemblyTitleAttribute("Zurnal")]
|
[assembly: System.Reflection.AssemblyTitleAttribute("Zurnal")]
|
||||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||||
|
@ -1 +1 @@
|
|||||||
e6b6f9e54fa4ba82e681a5a3ba9349d7912311711fddca257c129394bd4b3c36
|
121cf440d2f05aa006ed4b5b711149fe4ec7b4624f8cd2c630bef170501bc669
|
||||||
|
Loading…
Reference in New Issue
Block a user