Aspnet website administration tool, user table table, or aspnet_users table

Why do my users and roles end up in user and role tables rather than aspnet_users and aspnet_roles?


When I use the Aspnet website administration tool (visualstudio-> menu-> project-> aspnet to add a user, he gets into the Users table and new roles in the Roles table.

All that I read on this subject says aspnet_users and aspnnet_roles.

I am using aspnetmvc4 (beta), sqlserver2008r2, visualstudio2010. I created aspnet_xxx tables in the database through aspnet_regsql.exe. I sniff sqlserver and get requests from users and roles. It even creates an application table.

As requested, membership in web.config:

<membership defaultProvider="DefaultMembershipProvider"> <providers> <clear /> <add connectionStringName="DefaultConnection" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" name="DefaultMembershipProvider" type="System.Web.Providers.DefaultMembershipProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> </providers> </membership> 
+6
source share
1 answer

Old School ASP.NET 2.0+ Providers ( System.Web.XXX.SqlXXXProvider )
-> Uses the aspnet_Users and aspnet_Roles tables through stored procedures.

New universal providers ( System.Web.Providers.XXX )
-> Uses the Users and Roles tables through (EF-generated?) SQL.

Details here (from Mr. Scott X): http://www.hanselman.com/blog/IntroducingSystemWebProvidersASPNETUniversalProvidersForSessionMembershipRolesAndUserProfileOnSQLCompactAndSQLAzure.aspx

+8
source

Source: https://habr.com/ru/post/900196/


All Articles