Gopi

Gopi

  • 1.4k
  • 305
  • 20.9k

get list of data from database using stored procedure

Apr 6 2024 5:39 AM

I want to get the list of data from the database as student each student has list of projects

public class Student
{
    public int StudentId { get; set; }
    public string StudentName{ get; set; }
    public List<Project> Projects { get; set;}
}

public class Project
{
    public int ProjectId { get; set; }
    public string ProjectName { get; set; }
}


Answers (2)