电子药箱通讯服务端
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

1234567891011121314151617181920212223
  1. using System;
  2. using System.ComponentModel.DataAnnotations;
  3. namespace Rdh.ElectronicMedicineKit.Models
  4. {
  5. public interface IEntity<T>
  6. {
  7. T Id { get; set; }
  8. }
  9. public abstract class RootEntity : IEntity<Guid>
  10. {
  11. [Key]
  12. public Guid Id { get; set; } = Guid.NewGuid();
  13. public Guid? Creator { get; set; }
  14. public DateTime CreationTime { get; set; }
  15. public Guid? Modifier { get; set; }
  16. public DateTime? LastModificationTime { get; set; }
  17. public bool IsDeleted { get; set; }
  18. public DateTime? DeletionTime { get; set; }
  19. }
  20. }