zhengyiming
16 小时以前 193fa41f6419b80f33dabad90ed65ed1e310add8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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>();
            options.AddDbPool<SyncTargetDbContext, SyncTargetDbContextLocator>();
        }, "FlexJobApi.Database.Migrations");
 
    }
}