using ConsoleApp1.data.model; using Microsoft.EntityFrameworkCore; using Type = ConsoleApp1.data.model.Type; namespace ConsoleApp1.data; public class PokemonContext : DbContext { public DbSet Types { get; set; } public DbSet Stats { get; set; } public DbSet Abilities { get; set; } public DbSet Pokemons { get; set; } public DbSet PokemonsTypes { get; set; } public DbSet PokemonsStats { get; set; } public DbSet PokemonsAbilitys { get; set; } protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { base.OnConfiguring(optionsBuilder); optionsBuilder.UseNpgsql("Username=postgres;Password=mysecretpassword;Host=localhost:5432;Database=postgres;"); } }