mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-10 19:50:53 +08:00
27 lines
679 B
C#
27 lines
679 B
C#
|
|
using Furion;
|
|||
|
|
using Microsoft.AspNetCore.Builder;
|
|||
|
|
using Microsoft.AspNetCore.Hosting;
|
|||
|
|
using Microsoft.Extensions.DependencyInjection;
|
|||
|
|
using Microsoft.Extensions.Hosting;
|
|||
|
|
using Yi.Framework.Infrastructure.AspNetCore;
|
|||
|
|
using Yi.Framework.Infrastructure.Sqlsugar;
|
|||
|
|
|
|||
|
|
namespace Yi.Framework.Module;
|
|||
|
|
|
|||
|
|
public class Startup : AppStartup
|
|||
|
|
{
|
|||
|
|
public void ConfigureServices(IServiceCollection services)
|
|||
|
|
{
|
|||
|
|
services.AddCurrentUserServer();
|
|||
|
|
|
|||
|
|
services.Configure<DbConnOptions>(App.Configuration.GetSection("DbConnOptions"));
|
|||
|
|
|
|||
|
|
services.AddDbSqlsugarContextServer();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|