using ComputerStoreDatabaseImplement.Models; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ComputerStoreDatabaseImplement { public class ComputerStoreDatabase : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (optionsBuilder.IsConfigured == false) { optionsBuilder.UseSqlServer(@"Data Source=YUEEJKE\SQLEXPRESS;Initial Catalog=ComputerStoreDatabase;Integrated Security=True;MultipleActiveResultSets=True;TrustServerCertificate=True"); } base.OnConfiguring(optionsBuilder); } public virtual DbSet Components { get; set; } public virtual DbSet Products { get; set; } public virtual DbSet PCS { get; set; } public virtual DbSet Employees { get; set; } public virtual DbSet RequestComponents { get; set; } public virtual DbSet ProductComponents { get; set; } public virtual DbSet ConsignmentProducts { get; set; } public virtual DbSet Consignments { get; set; } public virtual DbSet Orders { get; set; } public virtual DbSet Requests { get; set; } public virtual DbSet Sellers { get; set; } } }