BaseViewModel.cs 813 B

1234567891011121314151617181920212223242526272829303132333435
  1. using DW5S.Entity;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace DW5S.ViewModel
  9. {
  10. public class BaseViewModel
  11. {
  12. [Display(Name = "编号")]
  13. public long Id { get; set; }
  14. [Display(Name = "创建时间")]
  15. public DateTime CreateTime { get; set; }
  16. [Display(Name = "更新时间")]
  17. public DateTime UpdateTime { get; set; }
  18. }
  19. public class BaseViewModelInt
  20. {
  21. [Display(Name = "编号")]
  22. public int Id { get; set; }
  23. [Display(Name = "创建时间")]
  24. public DateTime CreateTime { get; set; }
  25. [Display(Name = "更新时间")]
  26. public DateTime UpdateTime { get; set; }
  27. }
  28. }