diff --git a/src/bundles/Elsa.Server.Web/Program.cs b/src/bundles/Elsa.Server.Web/Program.cs index c0bdc67f0..ec8a8263b 100644 --- a/src/bundles/Elsa.Server.Web/Program.cs +++ b/src/bundles/Elsa.Server.Web/Program.cs @@ -25,7 +25,7 @@ using Proto.Persistence.SqlServer; const bool useMongoDb = false; const bool useSqlServer = false; -const bool useDapper = false; +const bool useDapper = true; const bool useProtoActor = false; const bool useHangfire = false; const bool useQuartz = true; diff --git a/src/modules/Elsa.Dapper/Features/DapperFeature.cs b/src/modules/Elsa.Dapper/Features/DapperFeature.cs index 1853c928d..90194cdd5 100644 --- a/src/modules/Elsa.Dapper/Features/DapperFeature.cs +++ b/src/modules/Elsa.Dapper/Features/DapperFeature.cs @@ -30,6 +30,6 @@ public class DapperFeature : FeatureBase /// public override void Apply() { - Services.AddScoped(DbConnectionProvider); + Services.AddSingleton(DbConnectionProvider); } } \ No newline at end of file