using Microsoft.EntityFrameworkCore; using BMA.EHR.MetaData.Service.Models; using BMA.EHR.Domain.Models.Placement; namespace BMA.EHR.Recurit.Service.Data { public class MetadataDbContext : DbContext { public MetadataDbContext(DbContextOptions options) : base(options) { } protected override void OnModelCreating(ModelBuilder modelBuilder) { } // The following configures EF to create a Sqlite database file in the // special "local" folder for your platform. protected override void OnConfiguring(DbContextOptionsBuilder options) { // if (!options.IsConfigured) // { // var environment = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") ?? "Production"; // var configurationBuilder = new ConfigurationBuilder() // .AddJsonFile("appsettings.json", optional: true, true) // .AddJsonFile($"appsettings.{environment}.json", true, true) // .AddEnvironmentVariables() // .Build(); // var historyConnection = configurationBuilder.GetConnectionString("HistoryConnection"); // options.UseMySql(historyConnection, ServerVersion.AutoDetect(historyConnection)); // } } // public DbSet ProfileOrganizations { get; set; } // public DbSet Organizations { get; set; } public DbSet Placements { get; set; } public DbSet PlacementCertificates { get; set; } public DbSet PlacementEducations { get; set; } public DbSet PlacementIsProperties { get; set; } public DbSet PlacementProfiles { get; set; } public DbSet PlacementTypes { get; set; } // public DbSet BloodGroups { get; set; } // public DbSet Districts { get; set; } // public DbSet EducationLevels { get; set; } // public DbSet Genders { get; set; } // public DbSet PositionPaths { get; set; } // public DbSet Prefixes { get; set; } // public DbSet Provinces { get; set; } // public DbSet Relationships { get; set; } // public DbSet Religions { get; set; } // public DbSet SubDistricts { get; set; } // public DbSet Profiles { get; set; } // public DbSet ProfileSalaries { get; set; } } }