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; } } }