namespace Indotalent.Infrastructure.Database.PostgreSQL; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; public static class PostgreSQLConfiguration { public static IServiceCollection AddPostgreSQLContext(this IServiceCollection services, string connectionString) where TContext : DbContext { services.AddDbContext(options => options.UseNpgsql(connectionString, m => m.MigrationsAssembly(typeof(TContext).Assembly.FullName))); return services; } }