This commit replaces the `AddEnvelopeGeneratorRepositories` method with `AddEnvelopeGeneratorInfrastructureServices`, allowing for more flexible configuration through `IConfiguration` and `Action<SQLExecutorParams>`. The `SQLExecutor` class now utilizes `SQLExecutorParams` for its connection string, enhancing configurability. A new `SQLExecutorParams` class has been introduced to encapsulate connection string management. Various service registration calls have been updated to integrate the new infrastructure services, improving modularity and ease of database connection management.
7 lines
133 B
C#
7 lines
133 B
C#
namespace EnvelopeGenerator.Infrastructure;
|
|
|
|
public class SQLExecutorParams
|
|
{
|
|
public string? ConnectionString { get; set; }
|
|
}
|