Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Have a look at the DbContext (System.Data.Entity), inherited by IdentityDbContext (Microsoft.AspNet.Identity.EntityFramework), inherited by ApplicationDbContext that you will find inside the IdentityModels.cs in the default Visual Studio 2013 ASP.NET Web Application/MVC template.</p> <p>The AccountController gives you a clue as to how the above gets into play in how it is initialized:</p> <pre><code>public AccountController() : this(new UserManager&lt;ApplicationUser&gt;( new UserStore&lt;ApplicationUser&gt;(new ApplicationDbContext()))) {} </code></pre> <p>(If, by any chance, you're looking to customize, Kevin is right in his comment. For example, properties can be easily added to User through the ApplicationUser, and more control can be achieved as usual by your own implementation of whatever. The old identity and authentication architecture has been completely replaced by OWIN/Katana.)</p> <p>EDIT: Actually, I might have slightly misread your question. The code that actually creates the data base if need be probably resides in something like the CreateDatabaseIfNotExists class (System.Data.Entity). I'm not sure which exact implementation gets called from which context, but obviously creating the DB is the responsibility of Entity Framework.</p> <p>Still, using dotPeek, ILSpy, ReSharper or something similar, you should be able to find what you're looking for if you start out exploring the classes I mentioned initially. (The suggestion that this is not the place to alter behavior still stands.)</p> <p>Hope this helps.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload