using Furion.DatabaseAccessor; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; namespace YBEE.EQM.Core.SeedData; /// /// 角色组种子 /// public class SysRoleGroupSeedData : IEntitySeedData { /// /// 种子数据 /// /// /// /// public IEnumerable 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 }, }; } }