using BeautySalonDatabaseImplement.Models; using Microsoft.EntityFrameworkCore; namespace BeautySalonDatabaseImplement { public class BeautySalonDatabase : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (optionsBuilder.IsConfigured == false) { optionsBuilder.UseSqlServer(@"Data Source=DESKTOP-IHH1ICP\SQLEXPRESS;Initial Catalog=BeautySalonDatabaseFull;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True"); } base.OnConfiguring(optionsBuilder); } public virtual DbSet Masters { set; get; } public virtual DbSet Services { set; get; } public virtual DbSet MasterServices { set; get; } public virtual DbSet Visits { set; get; } public virtual DbSet Clients { set; get; } } }