using LawFirmContracts.BindingModels; using LawFirmDatabaseImplement.Models; using Microsoft.EntityFrameworkCore; namespace LawFirmDatabaseImplement { public class LawFirmDatabase : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (optionsBuilder.IsConfigured == false) { optionsBuilder.UseNpgsql(@"Host=localhost;Port=5432;Database=SchoolAgainStudyDataBase;Username=postgres;Password=186qazwsx"); } base.OnConfiguring(optionsBuilder); } public virtual DbSet Cases { set; get; } public virtual DbSet CaseClients { set; get; } public virtual DbSet Clients { set; get; } public virtual DbSet Hearings { set; get; } public virtual DbSet HearingLawyers { set; get; } public virtual DbSet Lawyers { set; get; } public virtual DbSet Visits { set; get; } public virtual DbSet VisitClients { set; get; } public virtual DbSet Consultations { set; get; } public virtual DbSet ConsultationLawyers { set; get; } public virtual DbSet Guarantors { set; get; } public virtual DbSet Executors { set; get; } } }