using Microsoft.EntityFrameworkCore; using PokedexApi.Data.Models; using Type = PokedexApi.Data.Models.Type; namespace PokedexApi.Data; public class PokemonContext: DbContext { public DbSet Types { get; set; } public DbSet Pokemons { get; set; } protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { base.OnConfiguring(optionsBuilder); optionsBuilder.UseNpgsql("Username=postgres;Password=123;Host=localhost:5432;Database=postgres"); } }