fix: 修复种子数据问题,等待完善
This commit is contained in:
@@ -60,6 +60,11 @@ namespace Yi.Framework.Core.Extensions
|
||||
//泛型类需要单独进行处理
|
||||
//情况1:使用自定义[AppService(ServiceType = typeof(注册抽象或者接口))],手动去注册,放type即可
|
||||
var serviceType = serviceAttribute.ServiceType;
|
||||
//if (serviceType is not null && serviceType.Name.Contains("IDataSeed`"))
|
||||
//{
|
||||
// Console.WriteLine();
|
||||
//}
|
||||
|
||||
//情况2 自动去找接口,如果存在就是接口,如果不存在就是本身
|
||||
if (serviceType == null)
|
||||
{
|
||||
|
||||
@@ -7,10 +7,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Cike.EventBus" Version="1.0.2" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\..\..\通用软件框架\Cike.EventBus\src\Cike.EventBus\Cike.EventBus.csproj" />
|
||||
<ProjectReference Include="..\..\framework\Yi.Framework.Core\Yi.Framework.Core.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ using Yi.RBAC.Domain.Shared.Identity.EnumClasses;
|
||||
namespace Yi.RBAC.Domain.DataSeeds
|
||||
{
|
||||
//支持依赖注入执行
|
||||
[AppService(typeof(IDataSeed<>))]
|
||||
//[AppService(typeof(IDataSeed<>))]
|
||||
|
||||
//支持启动时执行
|
||||
[AppService(typeof(IDataSeed))]
|
||||
|
||||
Reference in New Issue
Block a user