add department sql join query, alter person model to fit department data

This commit is contained in:
2022-05-16 18:03:14 +02:00
parent 1a9e339119
commit 9b4980c204
4 changed files with 57 additions and 53 deletions

View File

@@ -41,7 +41,7 @@ namespace it_projekt
}
foreach (Person person in db.Persons)
{
this.dataGrid.Rows.Add(person.Id, person.Firstname, person.Lastname, person.CreationDate, false);
this.dataGrid.Rows.Add(person.Id, person.Firstname, person.Lastname, person.department_short, person.department_long, person.CreationDate, false);
}
}