25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
517 B

  1. using SqlSugar;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace HKCardOUT.Logic
  8. {
  9. public class BaseEntity
  10. {
  11. [SugarColumn(IsPrimaryKey = true)]
  12. public Guid Id { get; set; }
  13. [SugarColumn(ColumnDataType = "DATETIME")]
  14. public DateTime CreateTime { get; set; }
  15. public void Create()
  16. {
  17. this.Id = Guid.NewGuid();
  18. this.CreateTime = DateTime.Now;
  19. }
  20. }
  21. }