Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

How can i change the default database for simple membership tables

$
0
0

Hello everyone,

I would like to ask this quick question about the default simple membership database that comes with asp.net mvc 4.5 internet application , my question is about where does it create its tables when I first create new user does it create its table in the default connection string (LocalDB) ? and what if I changed the default connection string to use a custom MS SQL Express database will that get reflected and those tables will be created in my new database ?

i noticed this code in the default account model and in its DbContext class it refers to default connection this was the code there :

publicclassUsersContext : DbContext
    {
publicUsersContext()
            : base("DefaultConnection")
        {
        }

publicDbSet<UserProfile>UserProfiles { get; set; }
    }

I Hope to get answer this time cheers


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>