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

@@ -101,8 +101,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Yi.Framework.FileManager",
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Yi.Framework.MultiTenancy", "src\framework\Yi.Framework.MultiTenancy\Yi.Framework.MultiTenancy.csproj", "{590B1EC0-CDA9-4937-BE07-FBB04437D21F}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Cike.EventBus", "..\..\通用软件框架\Cike.EventBus\src\Cike.EventBus\Cike.EventBus.csproj", "{1D44F0AA-0E47-4219-8DF5-67F13C012191}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -265,10 +263,6 @@ Global
{590B1EC0-CDA9-4937-BE07-FBB04437D21F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{590B1EC0-CDA9-4937-BE07-FBB04437D21F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{590B1EC0-CDA9-4937-BE07-FBB04437D21F}.Release|Any CPU.Build.0 = Release|Any CPU
{1D44F0AA-0E47-4219-8DF5-67F13C012191}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1D44F0AA-0E47-4219-8DF5-67F13C012191}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1D44F0AA-0E47-4219-8DF5-67F13C012191}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1D44F0AA-0E47-4219-8DF5-67F13C012191}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -316,7 +310,6 @@ Global
{8A604A6B-D1FA-4CFF-BCF5-557519B10FCB} = {EEF5F221-0E32-4A3D-B647-B4B5E7305806}
{1BF3115D-B027-4805-AF7B-41B3AE9CB355} = {EEF5F221-0E32-4A3D-B647-B4B5E7305806}
{590B1EC0-CDA9-4937-BE07-FBB04437D21F} = {5F2B846D-96CE-400A-878E-220498F4EE31}
{1D44F0AA-0E47-4219-8DF5-67F13C012191} = {EEF5F221-0E32-4A3D-B647-B4B5E7305806}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {6C1A3808-0F4F-43FB-A9FE-5F27A3BB2ECF}

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>