asp.net - Per request lifetime of ApplicationDbContext -
cannot seem applicationdbcontext using code
httpcontext.getowincontext().get<applicationdbcontext>();
the error says no overloaded method get() uses 0 arguments. not sure parameter pass.
i trying use same applicationdbcontext owin has link to, instead of creating additional one.
the get() method without parameters defined extension method in microsoft.aspnet.identity.owin
namespace. compile, add following using statement:
using microsoft.aspnet.identity.owin;
Comments
Post a Comment