add department sql join query, alter person model to fit department data
This commit is contained in:
@@ -12,17 +12,21 @@ namespace it_projekt
|
||||
public string Lastname { get; set; }
|
||||
public string Firstname { get; set; }
|
||||
public DateTime CreationDate { get; set; }
|
||||
public string department_short { get; set; }
|
||||
public string department_long { get; set; }
|
||||
|
||||
public Person()
|
||||
{
|
||||
|
||||
}
|
||||
public Person(string Id, string Lastname, string Firstname, DateTime CreationDate)
|
||||
public Person(string Id, string Lastname, string Firstname, DateTime CreationDate, string department_short, string department_long)
|
||||
{
|
||||
this.Id = Id;
|
||||
this.Lastname = Lastname;
|
||||
this.Firstname = Firstname;
|
||||
this.CreationDate = CreationDate;
|
||||
this.department_short = department_short;
|
||||
this.department_long = department_long;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user