using AbstractPackageInstallationDatabaseImplement.Models; using AbstractSoftwareInstallationDatabaseImplement.Models; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AbstractSoftwareInstallationDatabaseImplement { public class AbstractSoftwareInstallationDatabase : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (optionsBuilder.IsConfigured == false) { optionsBuilder.UseSqlServer(@"Data Source=IS-429-00\SQLEXPRESS;Initial Catalog=SogtwareInstallation;Integrated Security=True;MultipleActiveResultSets=True;TrustServerCertificate=True"); } base.OnConfiguring(optionsBuilder); } public virtual DbSet Softwares { set; get; } public virtual DbSet Packages { set; get; } public virtual DbSet PackageSoftwares { set; get; } public virtual DbSet Orders { set; get; } } }