Esempio n. 1
0
        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>>());
            //}
        }
Esempio n. 2
0
 public WebUserContext(IHttpContextAccessor httpContextAccessor, AppFactory appFactory)
 {
     this.httpContextAccessor = httpContextAccessor;
     userContext = new DefaultUserContext(appFactory, getUserName);
 }
Esempio n. 3
0
 public InternalUserContext(DefaultUserContext <TUser, TOAuthMembership, TKey> Context)