using DatabaseImplement.Models; using Microsoft.EntityFrameworkCore; namespace DatabaseImplement { public class FactoryGoWorkDatabase : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (optionsBuilder.IsConfigured == false) optionsBuilder.UseSqlServer("Data Source=.\\SQLEXPRESS;Initial Catalog=FactoryGoWorkDB;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True"); base.OnConfiguring(optionsBuilder); } public virtual DbSet Products { get; set; } public virtual DbSet Details { get; set; } public virtual DbSet DetailProducts { get; set; } public virtual DbSet Productions { get; set; } public virtual DbSet DetailProductions { get; set; } public virtual DbSet Implementers { get; set; } public virtual DbSet Guarantors { get; set; } public virtual DbSet Machines { get; set; } public virtual DbSet WorkerMachines { get; set; } public virtual DbSet Workers { get; set; } public virtual DbSet Workshops { get; set; } public virtual DbSet WorkerWorkshops { get; set; } } }