我使用这里的教程将用户数据库的主键从string更改为int ,但是我在初始化Role Manager时遇到了困难.它曾经使用过初始化
var roleManager = new RoleManager<IdentityRole>(new RoleStore<IdentityRole>(context));
如何使用新数据创建角色管理器?
更新:我正在使用MVC 5和EF 6.
c# asp.net asp.net-identity
asp.net ×1
asp.net-identity ×1
c# ×1