using BaseService.BaseData; using BaseService.Systems; using Microsoft.EntityFrameworkCore; using Volo.Abp.Data; using Volo.Abp.EntityFrameworkCore; namespace BaseService.EntityFrameworkCore { [ConnectionStringName("Default")] public class BaseServiceDbContext : AbpDbContext { public DbSet DataDictionaries { get; set; } public DbSet DataDictionaryDetails { get; set; } public DbSet Organizations { get; set; } public DbSet Jobs { get; set; } public DbSet UserJobs { get; set; } public DbSet UserOrganizations { get; set; } public DbSet Menus { get; set; } public DbSet RoleMenus { get; set; } public BaseServiceDbContext(DbContextOptions options) : base(options) { } protected override void OnModelCreating(ModelBuilder builder) { base.OnModelCreating(builder); //builder.Entity(b => //{ // b.ToTable(AbpIdentityDbProperties.DbTablePrefix + "Users"); //Sharing the same table "AbpUsers" with the IdentityUser // b.ConfigureByConvention(); // b.ConfigureAbpUser(); // b.Property(x => x.Enable).HasDefaultValue(true); //}); builder.ConfigureBaseService(); } } }