Archivi tag: DbContext

HttpContext GetOwinContext() outside Controller

In AccountController you can find this to access to UserManager If you need to access to ApplicationRoleManager, ApplicationSignInManager or ApplicationDbContext This is true if you write this code inside Controller because HttpContext is a property of Controller class: If you … Continua a leggere

Pubblicato in Asp.Net, MVC | Contrassegnato , , , , , | 1 commento