From 6eda27b034e503148131928a5de0b174225d979d Mon Sep 17 00:00:00 2001 From: herblinernexxbizz <125579511+herblinernexxbizz@users.noreply.github.com> Date: Wed, 6 Sep 2023 10:52:29 +0200 Subject: [PATCH] update connector (#4402) --- .../PostgreSqlDbConnectionProvider.cs | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/modules/Elsa.Dapper/Services/PostgreSqlDbConnectionProvider.cs b/src/modules/Elsa.Dapper/Services/PostgreSqlDbConnectionProvider.cs index 1d66828ac..971145d64 100644 --- a/src/modules/Elsa.Dapper/Services/PostgreSqlDbConnectionProvider.cs +++ b/src/modules/Elsa.Dapper/Services/PostgreSqlDbConnectionProvider.cs @@ -12,8 +12,27 @@ namespace Elsa.Dapper.Services; [PublicAPI] public class PostgreSqlDbConnectionProvider : IDbConnectionProvider { + private readonly string _connectionString = ""; + + /// + /// Initializes a new instance of the class. + /// + public PostgreSqlDbConnectionProvider() + { + } + + /// + /// Initializes a new instance of the class. + /// + /// The connection string to use. + public PostgreSqlDbConnectionProvider(string connectionString) + { + _connectionString = connectionString; + } + + /// - public string GetConnectionString() => "Data Source=elsa.dapper.db"; + public string GetConnectionString() => _connectionString; /// public IDbConnection GetConnection()