From cb90edfbed9475442f2d21f464cd2f3d6d6effb6 Mon Sep 17 00:00:00 2001 From: enisn Date: Wed, 13 Oct 2021 15:25:33 +0300 Subject: [PATCH] Add missing ConnectionString name to PaymentServiceDbContextFactory --- .../EntityFrameworkCore/PaymentServiceDbContextFactory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/payment/src/EShopOnAbp.PaymentService.EntityFrameworkCore/EntityFrameworkCore/PaymentServiceDbContextFactory.cs b/services/payment/src/EShopOnAbp.PaymentService.EntityFrameworkCore/EntityFrameworkCore/PaymentServiceDbContextFactory.cs index fa4e7ab8..885e3803 100644 --- a/services/payment/src/EShopOnAbp.PaymentService.EntityFrameworkCore/EntityFrameworkCore/PaymentServiceDbContextFactory.cs +++ b/services/payment/src/EShopOnAbp.PaymentService.EntityFrameworkCore/EntityFrameworkCore/PaymentServiceDbContextFactory.cs @@ -16,7 +16,7 @@ namespace EShopOnAbp.PaymentService.EntityFrameworkCore var configuration = BuildConfiguration(); var builder = new DbContextOptionsBuilder() - .UseSqlServer(configuration.GetConnectionString("Default")); + .UseSqlServer(configuration.GetConnectionString(PaymentServiceDbProperties.ConnectionStringName)); return new PaymentServiceDbContext(builder.Options); }