asp.net web api - WebApi2 SPA Template Identity re-target database -
I have created a new web application in VS 2013 and to see how the Owen Oath authentication was setup, "Single Page application "has been selected. Everything works great, even when trying to migrate behavior in an existing application, I do not know where to change the context of the database to be converted into our existing database?
In "Startup.Auth.cs" see the following line - & gt;
UserManagerFactory = () = & gt; New UserManager & lt; IdentityUser & gt; (New UserStore & lt; IdentityUser & gt; ()); Which one can take a DbContext as a parameter, would I have to create a new example of reference and pass it? Is this reference indefinitely or open on a per request?
I was able to solve it using the following article as a reference -
Comments
Post a Comment