This commit is contained in:
30
Api/Dilon.Core/SeedData/SysAppSeedData.cs
Normal file
30
Api/Dilon.Core/SeedData/SysAppSeedData.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using Furion.DatabaseAccessor;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Dilon.Core
|
||||
{
|
||||
/// <summary>
|
||||
/// 系统应用表种子数据
|
||||
/// </summary>
|
||||
public class SysAppSeedData : IEntitySeedData<SysApp>
|
||||
{
|
||||
/// <summary>
|
||||
/// 种子数据
|
||||
/// </summary>
|
||||
/// <param name="dbContext"></param>
|
||||
/// <param name="dbContextLocator"></param>
|
||||
/// <returns></returns>
|
||||
public IEnumerable<SysApp> HasData(DbContext dbContext, Type dbContextLocator)
|
||||
{
|
||||
return new[]
|
||||
{
|
||||
new SysApp{Id=142307070922869, Name="业务应用", Code="busapp", Active="N", Status=0, Sort=100 },
|
||||
new SysApp{Id=142307070898245, Name="系统管理", Code="system", Active="Y", Status=0, Sort=100 },
|
||||
new SysApp{Id=142307070902341, Name="系统工具", Code="system_tool", Active="N", Status=0, Sort=100 },
|
||||
new SysApp{Id=142307070922826, Name="高级功能", Code="advanced", Active="N", Status=0, Sort=100 }
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user