sql - Reusing my UserManager tables for Roles manager (membership service) -


I am renaming a UserManager utility using table names (via DB reference configuration):

  ModelBlinder. Anti & lt; Users & gt; (). Broken ("user"); modelBuilder.Entity & LT; IntUserRole & gt; () ToTable ("UserRoles") .; modelBuilder.Entity & LT; IntUserLogin & gt; () ToTable ("UserLogins") .; modelBuilder.Entity & LT; IntUserClaim & gt; () ToTable ("UserClaims") .; modelBuilder.Entity & LT; IntRole & gt; () ToTable ("roles") .;   

Now, once the id [official] attribute wants to experiment with the choice of role, the ID needs to be restarted aspnet_regsql.exe, my db needs all the necessary For the creation of stored procedures.

Unfortunately this creates a new set of default named tables (aspne_roles ...).

Is this a way to reuse my tables?

This solution. The problem was related to the wrong configuration. Actually I did not need any special role management, but only check that the user has not been sent for the role.

To fix, I have probably changed my configuration to make one easy use:

    

Now, my renamed tables were used to manage role with my management manager, which was started for my default site reference.

Comments

Popular posts from this blog

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -