电子药箱通讯服务端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Patient.cs 445B

123456789101112131415
  1. using System;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. namespace Rdh.ElectronicMedicineKit.Models
  4. {
  5. public class Patient : RootEntity
  6. {
  7. public string Name { get; set; }
  8. public string PatientNo { get; set; }
  9. public Genders Gender { get; set; } = Genders.ÄÐ;
  10. public DateTime BirthDay { get; set; }
  11. [NotMapped]
  12. public int Age { get => DateTime.Now.Year - BirthDay.Year; }
  13. }
  14. }