Browse Source

Update EventHubPaymentDbContext.cs

pull/74/head
Halil İbrahim Kalkan 5 years ago
parent
commit
33a45b56b2
  1. 8
      src/EventHub.EntityFrameworkCore/EntityFrameworkCore/Payment/EventHubPaymentDbContext.cs

8
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<EventHubPaymentDbContext>, IPaymentDbContext

Loading…
Cancel
Save