sunpengfei
2025-08-05 5a5a0ed1fa93a83537eb36e69fac5a14994dc103
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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>();
        }, "FlexJobApi.Database.Migrations");
    }
}