選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

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