fix: 完善修复种子数据

This commit is contained in:
橙子
2023-03-03 21:26:18 +08:00
parent 3ba3ea6317
commit e0da9e1a87
7 changed files with 10 additions and 15 deletions

View File

@@ -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);

View File

@@ -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>

View File

@@ -4,7 +4,7 @@
"Yi.BBS.Web": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": false,
"launchBrowser": true,
"launchUrl": "swagger",
"applicationUrl": "http://localhost:19003",
"environmentVariables": {

View File

@@ -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>
///// 登录

View File

@@ -4,7 +4,7 @@
"Yi.BBS.Web": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": false,
"launchBrowser": true,
"launchUrl": "swagger",
"applicationUrl": "http://localhost:19003",
"environmentVariables": {

View File

@@ -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>