using SoftwareInstallationDatabaseImplement.Models; using Microsoft.EntityFrameworkCore; using System.Collections.Generic; namespace SoftwareInstallationDatabaseImplement { public class SoftwareInstallationDatabase : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (!optionsBuilder.IsConfigured) { optionsBuilder.UseSqlServer(@"Data Source=LAPTOP-952S2NGN;Initial Catalog=SoftHard;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True"); } base.OnConfiguring(optionsBuilder); } public virtual DbSet Components { get; set; } public virtual DbSet Packages { get; set; } public virtual DbSet PackageComponents { get; set; } public virtual DbSet Orders { get; set; } public virtual DbSet Shops { get; set; } public virtual DbSet ShopPackages { get; set; } } }