1234567891011121314151617181920212223242526 |
- using Furion.DatabaseAccessor;
- using Microsoft.EntityFrameworkCore;
- using System;
- using System.Collections.Generic;
- namespace YBEE.EQM.Core.SeedData;
- /// <summary>
- /// 角色用户种子
- /// </summary>
- public class SysRoleUserSeedData : IEntitySeedData<SysRoleUser>
- {
- /// <summary>
- /// 种子数据
- /// </summary>
- /// <param name="dbContext"></param>
- /// <param name="dbContextLocator"></param>
- /// <returns></returns>
- public IEnumerable<SysRoleUser> HasData(DbContext dbContext, Type dbContextLocator)
- {
- return new[]
- {
- new SysRoleUser { Id = 1, SysRoleId = 1, SysUserId = 2 },
- };
- }
- }
|