如何在mvc中的类库项目中使用asp.net标识 [英] how to use asp.net identity in class library project in mvc

查看:78
本文介绍了如何在mvc中的类库项目中使用asp.net标识的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi
如果我的项目有5层:DomainLayer(For Poco),DataLayer(For Context And Migration),ModelLayer(适用于ViewModel类),ServiceLayer(适用于crud),web(适用于UI)

如何在此项目中使用标识?

hi if my have a project with 5 layer: DomainLayer(For Poco),DataLayer(For Context And Migration),ModelLayer(for ViewModel Class),ServiceLayer(for crud),web(For UI)
how to use identity in this project?

推荐答案

以下文章重点介绍如何自定义和修改ASP.NET标识框架的1.0版。如果您使用的是最近发布的2.0版本,那么本文中的代码就可以了。有关使用Identity 2.0的更多信息,请参阅ASP.NET Identity 2.0:了解基础知识和ASP.NET Identity 2.0:



在ASP.NET MVC 5中扩展身份帐户并实施基于角色的身份验证 [ ^ ]

http://www.dotnetcurry.com/showarticle.aspx?ID=786 [ ^ ]
This following article focuses on customizing and modifying version 1.0 of the ASP.NET Identity framework. If you are using the recently released version 2.0, this code in this article won;t work. For more information on working with Identity 2.0, see ASP.NET Identity 2.0: Understanding the Basics and ASP.NET Identity 2.0:

Extending Identity Accounts and Implementing Role-Based Authentication in ASP.NET MVC 5[^]
http://www.dotnetcurry.com/showarticle.aspx?ID=786[^]


这篇关于如何在mvc中的类库项目中使用asp.net标识的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆