public DataTable getFinishedActiveStudents()
{
DataTable students = new DataTable();
students.Columns.Add("Student", typeof(string));
students.Columns.Add("MaxEnddate", typeof(DateTime));
students.Columns.Add("School", typeof(string));
var ActiveStudents = from s in Db.Persons
join personrole in Db.PersonRoles on s.ID equals personrole.PersonID
join rol in Db.Roles on personrole.RoleID equals rol.ID
where rol.Name.Equals("Student")
where s.Status.Equals(true)
orderby s.ForeName ascending
select new { s.ID, s.Status.Value, s.MailCode };
{
DataTable students = new DataTable();
students.Columns.Add("Student", typeof(string));
students.Columns.Add("MaxEnddate", typeof(DateTime));
students.Columns.Add("School", typeof(string));
var ActiveStudents = from s in Db.Persons
join personrole in Db.PersonRoles on s.ID equals personrole.PersonID
join rol in Db.Roles on personrole.RoleID equals rol.ID
where rol.Name.Equals("Student")
where s.Status.Equals(true)
orderby s.ForeName ascending
select new { s.ID, s.Status.Value, s.MailCode };