using LifePayment.Domain; using LifePayment.Domain.Models; using Microsoft.EntityFrameworkCore; using Volo.Abp.Data; using Volo.Abp.EntityFrameworkCore; using Volo.Abp.Uow; namespace LifePayment.EntityFrameworkCore { [ConnectionStringName(LifePaymentServicesDbProperties.ConnectionStringName)] public class LifePaymentServicesDbContext : AbpDbContext, ILifePaymentServicesDbContext { public LifePaymentServicesDbContext(DbContextOptions options) : base(options) { } public virtual DbSet LifePayUser { get; set; } public virtual DbSet LifePayOrder { get; set; } public virtual DbSet LifePayRate { get; set; } public virtual DbSet Area { get; set; } public virtual DbSet LifePayChannles { get; set; } public virtual DbSet LifePayAccount { get; set; } [UnitOfWork] protected override void OnModelCreating(ModelBuilder builder) { ModelDbContextModelBuilderExtensions.ConfigureModels(builder); base.OnModelCreating(builder); } } }