Browse Source

Add missing ConnectionString name to PaymentServiceDbContextFactory

pull/9/head
enisn 5 years ago
parent
commit
cb90edfbed
  1. 2
      services/payment/src/EShopOnAbp.PaymentService.EntityFrameworkCore/EntityFrameworkCore/PaymentServiceDbContextFactory.cs

2
services/payment/src/EShopOnAbp.PaymentService.EntityFrameworkCore/EntityFrameworkCore/PaymentServiceDbContextFactory.cs

@ -16,7 +16,7 @@ namespace EShopOnAbp.PaymentService.EntityFrameworkCore
var configuration = BuildConfiguration();
var builder = new DbContextOptionsBuilder<PaymentServiceDbContext>()
.UseSqlServer(configuration.GetConnectionString("Default"));
.UseSqlServer(configuration.GetConnectionString(PaymentServiceDbProperties.ConnectionStringName));
return new PaymentServiceDbContext(builder.Options);
}

Loading…
Cancel
Save