Method GetIdsWithAncestorsAsync<TProps>(List<long>)
Get IDs of all objects and their parents to root via recursive CTE.
Used for building hierarchical relationships in ToTreeListAsync.
Task<List<long>> GetIdsWithAncestorsAsync<TProps>(List<long> filteredIds) where TProps : class, new()