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.

21 regels
467 B

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