sqlprofileprovider

Do most people use .NET's SqlMembershipProvider, SqlRoleProvider, and SqlProfileProvider?

假装没事ソ 提交于 2019-12-20 10:46:12
问题 Do most people use .NET's SqlMembershipProvider, SqlRoleProvider, and SqlProfileProvider when developing a site with membership capabilities? Or do many people make their own providers, or even their own membership systems entirely? What are the limitations of the SQL providers that would make you roll your own? Is it easy to extend the SQL providers to provide additional functionality? For Reference Per Scott Gu's Blog, Microsoft provides the source code for the SqlMembershipProvider so that

Modifying ProfileBase ConnectionString dynamically

孤者浪人 提交于 2019-12-13 18:07:37
问题 I have the following code, which I want to use to modify the ProfileBase connectionString: ProfileBase profile = ProfileBase.Create(username); string _connectionString = (_DataModel.Connection as System.Data.EntityClient.EntityConnection).StoreConnection.ConnectionString; FieldInfo connectionStringField = profile.Providers["MySqlProfileProvider"].GetType().BaseType.GetField("_sqlConnectionString", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);

SqlProfileProvider - can you use Profile.GetProfile() in a project?

99封情书 提交于 2019-12-04 06:48:55
问题 I am attempting to use the SqlProfileProvider in an application and can't seem to use it the way I want to. I would like to be able to simply call up a profile like this: Profile p = Profile.GetProfile("naspinski"); p.Organization = "new_org"; but I can't seem to find the correct way to use the GetProfile() that I seem to see scattered around the net. Is there a way to grab, read and modify profiles? I am using it in MVC 3 and will not be actually logging in as the specific user, this will be

Do most people use .NET's SqlMembershipProvider, SqlRoleProvider, and SqlProfileProvider?

谁说胖子不能爱 提交于 2019-12-03 00:15:28
Do most people use .NET's SqlMembershipProvider, SqlRoleProvider, and SqlProfileProvider when developing a site with membership capabilities? Or do many people make their own providers, or even their own membership systems entirely? What are the limitations of the SQL providers that would make you roll your own? Is it easy to extend the SQL providers to provide additional functionality? For Reference Per Scott Gu's Blog , Microsoft provides the source code for the SqlMembershipProvider so that you can customize it, instead of starting from scratch. Just an FYI. We use everything except the

SqlProfileProvider - can you use Profile.GetProfile() in a project?

那年仲夏 提交于 2019-12-02 08:31:42
I am attempting to use the SqlProfileProvider in an application and can't seem to use it the way I want to. I would like to be able to simply call up a profile like this: Profile p = Profile.GetProfile("naspinski"); p.Organization = "new_org"; but I can't seem to find the correct way to use the GetProfile() that I seem to see scattered around the net. Is there a way to grab, read and modify profiles? I am using it in MVC 3 and will not be actually logging in as the specific user, this will be pulling users from the db that are specified. Thank you. To retrieve the profile: var profile =

What do the ASP.NET Universal Providers enable that the default sql providers don't?

大城市里の小女人 提交于 2019-12-01 09:34:25
问题 Inside the readme file of the ASP.NET Universal providers NuGet package is this quote The SqlMembershipProvider, SqlRoleProvider, SqlProfileProvider classes that shipped in ASP.NET through version 4 support only Microsoft SQL Server and Microsoft SQL Server Express. They do not support newer offerings such as Microsoft SQL Azure and Microsoft SQL Server Compact. However, when I run the custom aspnet_regsql scripts for Sql Azure http://support.microsoft.com/kb/2006191 and then point my web