ASP.NET 4.5成员和OAuth表 [英] ASP.NET 4.5 Membership and oAuth Tables
问题描述
有谁知道我能得到的ASP.NET成员的OAuth部分转移到我的MS SQL数据库,而不是使用它的LocalDB其似乎被默认在做什么?
Does anyone know how i can get the oAuth part on the ASP.NET membership moved to my MS SQL DB, rather than use localdb which its seems to be doing by default?
我有我的用户的所有设置在我的SQL数据库,但是UsersOpenAuthAccounts和UsersOpenAuthData存储在的LocalDB。
I have my users all set up in my SQL db, however the UsersOpenAuthAccounts and UsersOpenAuthData are stored in a localdb.
我使用ASP.NET 4.5,而不是MVC框架......只是柜面帮助。
I am using ASP.NET 4.5, not the MVC framework... just incase that helps.
更新:?当我改变我的连接字符串为DefaultConnection的OAuth的表,然后在我的数据库中创建,我想这会做但我怎么改变deafult连接到不同的东西。
Update: When i change my connection string to "DefaultConnection" the oAuth" tables are then created in my DB. I suppose this will do. But how do i change the deafult connection to something different?
阿伦
推荐答案
使用OpenAuth.ConnectionString指定要使用的连接字符串的名称。我这样做是在app_start文件夹中的RegisterOpenAuth方法AuthConfig.cs文件。
Use OpenAuth.ConnectionString to specify the name of the connection string to use. I do this in the RegisterOpenAuth method AuthConfig.cs file in the app_start folder.
这篇关于ASP.NET 4.5成员和OAuth表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!