feat: 完成code to web模块

This commit is contained in:
橙子
2023-09-24 00:42:09 +08:00
parent 58bf5062bf
commit 349a041d71
14 changed files with 187 additions and 43 deletions

View File

@@ -14,14 +14,14 @@ namespace Yi.Framework.Module.WebFirstManager.DataSeed
{
public class FieldDataSeed : AbstractDataSeed<FieldEntity>, ITransient
{
private TableEntity _tableEntity;
private TableAggregateRoot _tableEntity;
public FieldDataSeed(IRepository<FieldEntity> repository) : base(repository)
{
}
public override async Task<bool> IsInvoker()
{
var tableRepository = App.GetRequiredService<IRepository<TableEntity>>();
var tableRepository = App.GetRequiredService<IRepository<TableAggregateRoot>>();
_tableEntity = await tableRepository.GetFirstAsync(x => x.Name == "Test");
if (_tableEntity is null)
{