schangxiang@126.com
2024-04-26 6e6b156bb0100043214c170d7171eb79e0d7e344
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
 
namespace Admin.NET.Core.SeedData
{
    public class SysUserRoleSeedData : IEntitySeedData<SysUserRole>
    {
        /// <summary>
        /// 种子数据
        /// </summary>
        /// <param name="dbContext"></param>
        /// <param name="dbContextLocator"></param>
        /// <returns></returns>
        public IEnumerable<SysUserRole> HasData(DbContext dbContext, Type dbContextLocator)
        {
            return new[]
            {
                // 租户管理员默认管理员角色
                new SysUserRole {SysUserId = 142307070910552, SysRoleId = 142307070910554},
                //new SysUserRole {SysUserId = 142307070910554, SysRoleId = 142307070910556}
            };
        }
    }
}