All Questions
7 questions
0
votes
3
answers
764
views
How to get the list of employees and their reporting level recursively using LINQ
I have a table for list of employees with their supervisors.
| UserID | SupervisorUserId |
|--------|------------------|
| 10 | null |
| 1 | 10 |
| 2 | 1 ...
1
vote
2
answers
497
views
Recursive query takes too much time to load data in C#
*I have written a recursive query to get unlimited menu layer. The query works fine providing the exact results but it takes too much time to load. It takes probably 10 to 15 seconds. Please help me ...
1
vote
1
answer
185
views
Recursive query in EntityFramework throws NotSupportedException
I want to build a recursive query in EntityFramework 6.2.0 to get an employee and all his "direct" (one level) and all other subordinates down all the hierarchy.
My point was to use List<...
0
votes
2
answers
533
views
Check property value in nested list with unknown levels
I have a nested menu - here a simplified class:
public class NestedNode
{
public string Url { get; set; }
public List<NestedNode> Children { get; set; }
}
Given that I have a recursive ...
0
votes
2
answers
2k
views
ASP MVC 5 C# Recursive Trees To Group and Indent A DropDownList
I have a Model called Category which has a recursive (parent child) relationship as follows:
public class Category: ITreeNode<Category>
{
public byte Id { get; set; }
public ...
0
votes
1
answer
156
views
select to recursive list
I have a data table that includes information about the directory tree -folders and documents
The table includes a column ID and column parentId
+----+--------+-----------+---------+
| id | parent | ...
3
votes
1
answer
3k
views
Recursive select via LINQ? [duplicate]
Possible Duplicate:
linq to sql recursive query
I got stuck with having to build a Recursive select via LINQ for the self referencing table.
I use this class:
public class DivisionHierarchy
{
...