using BeautySaloonDatabaseImplement.Models; using Microsoft.EntityFrameworkCore; namespace BeautySaloonDatabaseImplement { public class BeautySaloonDatabase : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (optionsBuilder.IsConfigured == false) { optionsBuilder.UseSqlServer(@"Data Source=DESKTOP-D8KMQQU\SQLEXPRESS;Initial Catalog=SushiBarDatabase;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True"); } base.OnConfiguring(optionsBuilder); } public virtual DbSet Employees { set; get; } public virtual DbSet Positions { set; get; } public virtual DbSet Services { set; get; } public virtual DbSet Orders { set; get; } public virtual DbSet Clients { set; get; } public virtual DbSet OrderServices { set; get; } } }