Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

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