예제 #1
0
 public UserRoleTable GetUserRoleTable()
 {
     if (userRoleTable == null)
     {
         userRoleTable = new UserRoleTable(connStringName);
     }
     return(userRoleTable);
 }
예제 #2
0
        /// <summary>
        /// Constructor that takes a dbmanager as argument
        /// </summary>
        /// <param name="database"></param>
        public UserStore(DbManager database)
        {
            Database = database;

            userTable       = database.GetUserTable <TUser>();
            roleTable       = database.GetRoleTable();
            userRolesTable  = database.GetUserRoleTable();
            userClaimsTable = database.GetUserClaimTable();
            userLoginsTable = database.GetUserLoginTable();
        }