GreatHomeChildcare-2/Models/Child.cs

23 lines
642 B
C#
Raw Normal View History

2021-01-30 00:15:28 -05:00
namespace GreatHomeChildcare.Models
2021-01-12 01:34:14 -05:00
{
public class Child
{
public int id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
2021-01-12 01:34:14 -05: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 01:47:43 -05:00
//readonly property to populate a single child's full name.
2021-01-12 01:34:14 -05:00
// this is a "Get" only property
public string DisplayName
{
get =>
2021-01-15 00:36:40 -05:00
$"{LastName}, {FirstName}";
2021-01-12 01:34:14 -05:00
}
}
}