using FlexJobApi.Core;
|
using Furion;
|
using Microsoft.Extensions.DependencyInjection;
|
|
namespace FlexJobApi.EntityFramework.Core;
|
|
[AppStartup(1)]
|
public class Startup : AppStartup
|
{
|
public void ConfigureServices(IServiceCollection services)
|
{
|
services.AddDatabaseAccessor(options =>
|
{
|
options.AddDbPool<DefaultDbContext>();
|
options.AddDbPool<LogDbContext, LogDbContextLocator>();
|
options.AddDbPool<HumanResourcesDbContext, HumanResourcesDbContextLocator>();
|
}, "FlexJobApi.Database.Migrations");
|
}
|
}
|