ASP.NET MVC5 - Keeping Users in Oracle Database

前端 未结 4 873
陌清茗
陌清茗 2021-02-02 01:51

Once creating a ASP.NET MVC5 project (with target framework is .NET 4.5.1 and the authentication type is Individual User Account

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-02 02:39

    You can implement it yourself. It's not impossible. Someone has done it here and here. Things might have changed a bit.

    I've implemented my AspNet.Identity for nhibernate and I don't have any reference to entity framework. Cannot show you the code but I've basically followed what some others have done with RavenDb, Dapper or nHibernate.

    You have to implement your:

    • User (Microsoft.AspNet.Identity.IUser),
    • Role (Microsoft.AspNet.Identity.IRole)
    • UserStore (Microsoft.AspNet.Identity.IUserStore)
    • UserManager (Microsoft.AspNet.Identity.UserManager)
    • RolesStore (Microsoft.AspNet.Identity.IRoleStore)
    • RoleManager (Microsoft.AspNet.Identity.RoleManager)

提交回复
热议问题