电子药箱通讯服务端
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

Patient.cs 445B

před 7 měsíci
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. }