Example #1
0
        /// <summary>
        /// Constructor that takes a MySQLDatabase as argument
        /// </summary>
        /// <param name="database"></param>
        public UserStore(MySQLDatabase database)
        {
            Database  = database;
            userTable = new UserTable <TUser>(database);

            roleTable       = new RoleTable(database);
            userRolesTable  = new UserRolesTable(database);
            userClaimsTable = new UserClaimsTable(database);
            userLoginsTable = new UserLoginsTable(database);
        }
Example #2
0
 /// <summary>
 /// Constructor that takes a MySQLDatabase as argument
 /// </summary>
 /// <param name="database"></param>
 public RoleStore(MySQLDatabase database)
 {
     Database  = database;
     roleTable = new RoleTable(database);
 }