public InternalUserContext(DefaultUserContext <TUser, TKey> Context) #endif : base(Context.Provider.ConnectionString) { this.Context = Context; this.Configuration.AutoDetectChangesEnabled = false; //if (Context.Provider.AutoGenerateDatabase) { // Database.SetInitializer(new DropCreateDatabaseIfModelChanges<InternalContext<TUser, TKey>>()); //} }
public WebUserContext(IHttpContextAccessor httpContextAccessor, AppFactory appFactory) { this.httpContextAccessor = httpContextAccessor; userContext = new DefaultUserContext(appFactory, getUserName); }
public InternalUserContext(DefaultUserContext <TUser, TOAuthMembership, TKey> Context)