2021-01-30 05:15:28 +00:00
|
|
|
|
namespace GreatHomeChildcare.Models
|
2021-01-12 06:34:14 +00:00
|
|
|
|
{
|
|
|
|
|
public class Child
|
|
|
|
|
{
|
|
|
|
|
public int id { get; set; }
|
2021-01-14 04:12:07 +00:00
|
|
|
|
public string FirstName { get; set; }
|
|
|
|
|
public string LastName { get; set; }
|
2021-01-12 06:34:14 +00:00
|
|
|
|
public string DOB { get; set; }
|
|
|
|
|
public string address { get; set; }
|
|
|
|
|
public string race { get; set; }
|
|
|
|
|
public string gender { get; set; }
|
|
|
|
|
public byte[] photo { get; set; }
|
|
|
|
|
|
2021-01-25 06:47:43 +00:00
|
|
|
|
//readonly property to populate a single child's full name.
|
2021-01-12 06:34:14 +00:00
|
|
|
|
// this is a "Get" only property
|
|
|
|
|
public string DisplayName
|
|
|
|
|
{
|
|
|
|
|
get =>
|
2021-01-15 05:36:40 +00:00
|
|
|
|
$"{LastName}, {FirstName}";
|
2021-01-12 06:34:14 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|