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