将SqlMembershipProvider架构添加到数据库 [英] Adding SqlMembershipProvider Schema to a database

查看:74
本文介绍了将SqlMembershipProvider架构添加到数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我当前正在创建一个小型Web应用程序,要求用户登录后才能使用任何功能.

I'm currently creating a small web app that requires users to log in before accessing any features.

我正在使用Visual Web Developer 2010,并且已经在项目的App_Data文件夹中创建了一个数据库,现在我希望将其添加到所需的表,视图和存储过程中,以便使用SqlMembershipProvider.我已经运行过aspnet_regsql 归档并输入所需的详细信息,并完成所有所需的步骤;但是,当我返回Visual Web Developer并刷新创建的数据库时,什么也没有发生,没有表或存储过程.

I'm using Visual Web Developer 2010 and I have created a database in the App_Data folder of my project that I now wish to add the required tables, views and stored procedures to in order to use the SqlMembershipProvider.  I have ran the aspnet_regsql file and entered the required details and completed all the required steps; however, when I return to Visual Web Developer and refresh the database I created, nothing happens, there are no tables or stored procedures.

尽管我的项目中没有向数据库中添加任何内容,但是当我打开SQL Server Management Studio时,我的数据库出现了所有相关的表,视图等.

Although nothing has been added to the database in my project, when I open up SQL Server Management Studio, my database appears with all the relevant tables, views etc.

具有所有必需表等的数据库是否有任何原因出现在SQL Server Management Studio中,而不出现在我的Visual Web Developer项目中?

Is there any reason why the database with all the required tables etc appears in SQL Server Management Studio but not in my project in Visual Web Developer?

我之前在不同机器上的另一个项目上完成了此操作,对此感到非常困惑.

I'm getting rather confused as I have completed this before on another project on a different machine and it worked fine.

任何人的建议或帮助,将不胜感激.

Any advice or help anybody has would be greatly appreciated.

欢呼

Martyn

 

推荐答案

请在ASP.Net论坛中重新提交您的请求,该论坛绑定到Visual Studio数据库项目,而不是与您的情况有关的ASP.Net.

Please resubmit your request in the ASP.Net Forums, this forum is bound to Visual Studio Database Project not ASP.Net which would be relevant in your case.

谢谢,詹斯.


这篇关于将SqlMembershipProvider架构添加到数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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