เช็ค ocId user
This commit is contained in:
parent
a85bf3526a
commit
b89e500c21
7 changed files with 2217 additions and 2020 deletions
38
Data/MetadataDbContext.cs
Normal file
38
Data/MetadataDbContext.cs
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace BMA.EHR.Recurit.Service.Data
|
||||
{
|
||||
public class MetadataDbContext : DbContext
|
||||
{
|
||||
public MetadataDbContext(DbContextOptions<MetadataDbContext> 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<BMA.EHR.Profile.Service.Models.HR.ProfileOrganization> ProfileOrganizations { get; set; }
|
||||
public DbSet<BMA.EHR.Profile.Service.Models.HR.OrganizationEntity> Organizations { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue