using DatabaseImplement.Models; using Microsoft.EntityFrameworkCore; namespace DatabaseImplement { public class FactoryGoWorkDatabase : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { optionsBuilder.UseNpgsql("Host=localhost;Port=5432;Database=GoWorkDB;Username=postgres;Password=postgres"); } 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; } } }