小编gre*_*g.y的帖子

使用自定义角色在ASP.NET标识中初始化RoleManager

我使用这里的教程将用户数据库的主键从string更改为int ,但是我在初始化Role Manager时遇到了困难.它曾经使用过初始化

var roleManager = new RoleManager<IdentityRole>(new RoleStore<IdentityRole>(context));
Run Code Online (Sandbox Code Playgroud)

如何使用新数据创建角色管理器?

更新:我正在使用MVC 5和EF 6.

c# asp.net asp.net-identity

18
推荐指数
1
解决办法
3万
查看次数

标签 统计

asp.net ×1

asp.net-identity ×1

c# ×1