Having a stored procedure which returns list of Students with each user having list of projects
Execute the Stored procedure and receive the Students with their Projects from .Net
List
public class Student
{
public int StudentId { get; set; }
public string StudentName{ get; set; }
public List
}
public class Project
{
public int ProjectId { get; set; }
public string ProjectName { get; set; }
}
Jithu ThomasPosted Apr 6, 2024, 11:25 AM
Using System.Data.SqlClient (Recommended):
This approach is well-supported and offers a reliable way to interact with SQL Server databases in .NET.