UserDatumPart.cs 564 B

12345678910111213141516171819202122232425
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace prakt1314
  8. {
  9. public partial class UserDatum
  10. {
  11. [NotMapped]
  12. public DateTimeOffset? BirthDayOffset
  13. {
  14. get => new DateTimeOffset(Birthdate);
  15. set
  16. {
  17. if (value is not null)
  18. {
  19. Birthdate = ((DateTimeOffset)value).DateTime;
  20. }
  21. }
  22. }
  23. }
  24. }