电子药箱通讯服务端
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.

IEntity.cs 608B

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. }