From 33a45b56b2f5c167a99171bd59a2468e6fc8ee79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Sat, 20 Nov 2021 20:24:32 +0300 Subject: [PATCH] Update EventHubPaymentDbContext.cs --- .../Payment/EventHubPaymentDbContext.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/EventHub.EntityFrameworkCore/EntityFrameworkCore/Payment/EventHubPaymentDbContext.cs b/src/EventHub.EntityFrameworkCore/EntityFrameworkCore/Payment/EventHubPaymentDbContext.cs index 5fb930d..959c6da 100644 --- a/src/EventHub.EntityFrameworkCore/EntityFrameworkCore/Payment/EventHubPaymentDbContext.cs +++ b/src/EventHub.EntityFrameworkCore/EntityFrameworkCore/Payment/EventHubPaymentDbContext.cs @@ -8,6 +8,14 @@ using Volo.Abp.EntityFrameworkCore; namespace EventHub.EntityFrameworkCore.Payment { + /* + * This class replaces the IPaymentDbContext (defined by the Payment module) + * using the [ReplaceDbContext] attribute and implementing the IPaymentDbContext interface. + * It also declares the [ConnectionStringName] attribute to use the Payment connection string name + * instead of the Default in appsettings.json files. + * Finally, it calls modelBuilder.ConfigurePayment() extension method of the Payment module + * to configure the database mappings. + */ [ReplaceDbContext(typeof(IPaymentDbContext))] [ConnectionStringName(PaymentDbProperties.ConnectionStringName)] public class EventHubPaymentDbContext : AbpDbContext, IPaymentDbContext