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.UseSqlServer(@"Data Source=ZIRAEL\SQLEXPRESS;Initial Catalog=LawFirmDatabase;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True"); optionsBuilder.UseSqlServer(@"Data Source=PC-Anna\SQLEXPRESS;Initial Catalog=LawFirmDatabase2;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True"); } 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; } } }