using DatabaseImplement.Models; using Microsoft.EntityFrameworkCore; namespace DatabaseImplement { public class Database : DbContext { public DbSet Products { get; set; } public DbSet Categories { get; set; } protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { optionsBuilder.UseNpgsql("Host=localhost;Port=5432;Database=kop;Username=postgres;Password=postgres"); } } }