mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-20 16:36:37 +08:00
完成种子数据模块,完成服务替换模块
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.DependencyInjection.Extensions;
|
||||
using StartupModules;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -22,12 +23,15 @@ namespace Yi.Framework.Data
|
||||
{
|
||||
//使用了过滤器
|
||||
app.UseDataFiterServer();
|
||||
|
||||
//添加种子数据
|
||||
app.UseDataSeedServer();
|
||||
}
|
||||
|
||||
public void ConfigureServices(IServiceCollection services, ConfigureServicesContext context)
|
||||
{
|
||||
//添加默认没有真正实现的
|
||||
services.AddTransient<IDataFilter, DefaultDataFilter>();
|
||||
services.TryAddTransient<IDataFilter, DefaultDataFilter>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user