在DAL中使用SqlMembershipProvider [英] using SqlMembershipProvider in DAL

查看:54
本文介绍了在DAL中使用SqlMembershipProvider的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能吗..

我想将SqlMembershipProvider添加到我的DAL类库项目中,而不是我的Web项目中,这可能吗...
我已经将表等添加到数据库中,以便即时使用,但即时消息丢失了如何通过我的BLL层通过登录控件访问SqlMembershipProvider

Is this possible..

I want to add the SqlMembershipProvider to my DAL Class Library project, not my web project, is this possible...
Ive already added the tables etc to the database im going to use but im lost as to how to access the SqlMembershipProvider via the login controls through my BLL layer

推荐答案

所有要做的是添加对System.Web的引用,然后在包含成员资格配置信息的app.config文件中创建一个system.web节点.创建asp.net Web应用程序时,它们是自动完成的,但是不会在winforms项目中完成.
All you have to do is add a reference to System.Web and then create a system.web node in your app.config file that contains the membership configuration information. When you create an asp.net web applications, these are done automatically...but not within a winforms project.


这篇关于在DAL中使用SqlMembershipProvider的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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