acc0d44c7c
Internal service bus support enabled Added quartz support Reconfigured extensions
15 lines
447 B
C#
15 lines
447 B
C#
using LiteCharms.Infrastructure.Database;
|
|
|
|
namespace LiteCharms.Extensions;
|
|
|
|
public static class Postgres
|
|
{
|
|
public static IServiceCollection AddLeadGeneratorDatabase(this IServiceCollection services, IConfiguration configuration)
|
|
{
|
|
services.AddPooledDbContextFactory<LeadGeneratorDbContext>(options =>
|
|
options.UseNpgsql(configuration.GetConnectionString("PostgresLeadGenerator")));
|
|
|
|
return services;
|
|
}
|
|
}
|