mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-25 19:26:37 +08:00
添加扩展中间件
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.OpenApi.Models;
|
||||
using System;
|
||||
using System.IO;
|
||||
using Yi.Framework.Common.IOCOptions;
|
||||
|
||||
namespace Yi.Framework.WebCore.MiddlewareExtend
|
||||
{
|
||||
/// <summary>
|
||||
/// 数据库扩展
|
||||
/// </summary>
|
||||
public static class DataBaseExtension
|
||||
{
|
||||
public static IServiceCollection AddDataBaseService<IocOptios>(this IServiceCollection services , string appsettings)
|
||||
{
|
||||
Appsettings.app<IocOptios>(appsettings);
|
||||
return services;
|
||||
}
|
||||
|
||||
public static void UseDataBaseService(this IApplicationBuilder app)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user