public UserStore(IDBRepositoryConfiguration config, IUserTable <TUser, TUserKey> userTable = null, IUserLoginsTable <TUser, TUserKey> userLoginTable = null, IRoleTable <TRole, TRoleKey> roleTable = null, IUserRolesTable <TUser, TUserKey, TRoleKey> userRolesTable = null, IUserClaimsTable <TUser, TUserKey> userClaimsTable = null) { this.config = config; if (userTable != null) { this.userTable = userTable; } else { this.userTable = new UserTable <TUser, TUserKey>(this.config); } if (userLoginTable != null) { this.userLoginTable = userLoginTable; } else { this.userLoginTable = new UserLoginsTable <TUser, TUserKey>(this.config); } if (roleTable != null) { this.roleTable = roleTable; } else { this.roleTable = new RoleTable <TRole, TRoleKey>(this.config); } if (userRolesTable != null) { this.userRolesTable = userRolesTable; } else { this.userRolesTable = new UserRolesTable <TUser, TUserKey, TRoleKey>(this.config); } if (userClaimsTable != null) { this.userClaimsTable = userClaimsTable; } else { this.userClaimsTable = new UserClaimsTable <TUser, TUserKey>(this.config); } }
public UserClaimsTable(IDBRepositoryConfiguration config) { this._config = config; this.claimsTable = config.ClaimsTableName; }
public RoleTable(IDBRepositoryConfiguration config) { this._config = config; this.roleTableName = _config.RoleTableName; }
public UserRolesTable(IDBRepositoryConfiguration config) { this._config = config; this.userRolesTableName = config.UserRolesTableName; }
public UserLoginsTable(IDBRepositoryConfiguration config) { this._config = config; this.userLoginsTable = this._config.UserLogins; }