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

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