Add MetaData Table From ExistData
Change to use MySQL
This commit is contained in:
parent
89de09d213
commit
a0b3b13074
136 changed files with 3438 additions and 1237 deletions
|
|
@ -11,34 +11,20 @@ namespace BMA.EHR.Infrastructure
|
|||
public static IServiceCollection AddPersistence(this IServiceCollection services,
|
||||
IConfiguration configuration)
|
||||
{
|
||||
services.AddDbContext<ApplicationDBContext>(options =>
|
||||
options.UseOracle(configuration.GetConnectionString("DefaultConnection"),
|
||||
b => b.MigrationsAssembly(typeof(ApplicationDBContext).Assembly.FullName)), ServiceLifetime.Transient);
|
||||
var connectionString = configuration.GetConnectionString("DefaultConnection");
|
||||
|
||||
services.AddDbContext<ApplicationDBContext>(options =>
|
||||
options.UseMySql(connectionString, ServerVersion.AutoDetect(connectionString),
|
||||
b =>
|
||||
{
|
||||
b.MigrationsAssembly(typeof(ApplicationDBContext).Assembly.FullName);
|
||||
b.MigrationsHistoryTable("__EHRMigrationsHistory");
|
||||
|
||||
}),
|
||||
ServiceLifetime.Transient);
|
||||
|
||||
services.AddScoped<IApplicationDBContext>(provider => provider.GetService<ApplicationDBContext>());
|
||||
|
||||
return services;
|
||||
}
|
||||
|
||||
public static IServiceCollection AddEmailSender(this IServiceCollection services,
|
||||
IConfiguration configuration)
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return services;
|
||||
}
|
||||
|
||||
public static IServiceCollection AddS3Storage(this IServiceCollection services,
|
||||
IConfiguration configuration)
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return services;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue