fix: 完善修复种子数据
This commit is contained in:
@@ -28,7 +28,7 @@ namespace Yi.Framework.Core.Extensions
|
||||
/// <returns></returns>
|
||||
public static IServiceCollection AddAutoIocServer(this IServiceCollection services)
|
||||
{
|
||||
var assemblys = AppDomain.CurrentDomain.GetAssemblies();
|
||||
var assemblys = Yi.Framework.Core.Module.ModuleAssembly.Assemblies;
|
||||
foreach (var a in assemblys)
|
||||
{
|
||||
RegIoc(services, a);
|
||||
|
||||
@@ -7,7 +7,10 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\..\..\通用软件框架\Cike.EventBus\src\Cike.EventBus\Cike.EventBus.csproj" />
|
||||
<PackageReference Include="Cike.EventBus" Version="1.0.2" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\framework\Yi.Framework.Core\Yi.Framework.Core.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"Yi.BBS.Web": {
|
||||
"commandName": "Project",
|
||||
"dotnetRunMessages": true,
|
||||
"launchBrowser": false,
|
||||
"launchBrowser": true,
|
||||
"launchUrl": "swagger",
|
||||
"applicationUrl": "http://localhost:19003",
|
||||
"environmentVariables": {
|
||||
|
||||
@@ -17,8 +17,7 @@ namespace Yi.BBS.Application.GlobalSetting
|
||||
public class TempService : ApplicationService, IAutoApiService
|
||||
{
|
||||
|
||||
public TempService(IDataSeed<UserEntity> dataSeed) {
|
||||
dataSeed.InvokerAsync().Wait();
|
||||
public TempService() {
|
||||
}
|
||||
///// <summary>
|
||||
///// 登录
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"Yi.BBS.Web": {
|
||||
"commandName": "Project",
|
||||
"dotnetRunMessages": true,
|
||||
"launchBrowser": false,
|
||||
"launchBrowser": true,
|
||||
"launchUrl": "swagger",
|
||||
"applicationUrl": "http://localhost:19003",
|
||||
"environmentVariables": {
|
||||
|
||||
@@ -12,8 +12,8 @@ using Yi.RBAC.Domain.Shared.Identity.EnumClasses;
|
||||
namespace Yi.RBAC.Domain.DataSeeds
|
||||
{
|
||||
//支持依赖注入执行
|
||||
//[AppService(typeof(IDataSeed<>))]
|
||||
|
||||
[AppService(typeof(IDataSeed<UserEntity>))]
|
||||
|
||||
//支持启动时执行
|
||||
[AppService(typeof(IDataSeed))]
|
||||
public class UserDataSeed : AbstractDataSeed<UserEntity>
|
||||
|
||||
Reference in New Issue
Block a user