123456789101112131415161718192021222324252627282930 |
- using Furion.DatabaseAccessor;
- using Microsoft.EntityFrameworkCore;
- using System;
- using System.Collections.Generic;
- namespace YBEE.EQM.Core.SeedData;
- /// <summary>
- /// 角色组种子
- /// </summary>
- public class SysRoleGroupSeedData : IEntitySeedData<SysRoleGroup>
- {
- /// <summary>
- /// 种子数据
- /// </summary>
- /// <param name="dbContext"></param>
- /// <param name="dbContextLocator"></param>
- /// <returns></returns>
- public IEnumerable<SysRoleGroup> HasData(DbContext dbContext, Type dbContextLocator)
- {
- return new[]
- {
- new SysRoleGroup { Id = 1, Name = "默认", CreateSysUserId = 1, CreateTime = DateTime.Now, IsDeleted = false },
- new SysRoleGroup { Id = 2, Name = "中心角色", CreateSysUserId = 1, CreateTime = DateTime.Now, IsDeleted = false },
- new SysRoleGroup { Id = 3, Name = "学区角色", CreateSysUserId = 1, CreateTime = DateTime.Now, IsDeleted = false },
- new SysRoleGroup { Id = 4, Name = "学校角色", CreateSysUserId = 1, CreateTime = DateTime.Now, IsDeleted = false },
- new SysRoleGroup { Id = 5, Name = "教研角色", CreateSysUserId = 1, CreateTime = DateTime.Now, IsDeleted = false },
- };
- }
- }
|