集成,总结MES功能
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.
 
 
 
 

28 lines
618 B

  1. using SqlSugar;
  2. using System.ComponentModel;
  3. using Yitter.IdGenerator;
  4. namespace BPA.MES.Base.Core
  5. {
  6. /// <summary>
  7. /// 名 称 :主键
  8. /// 创 建 人 :yangxiao
  9. /// 创建时间 :2023/3/2 13:59:33
  10. /// 描 述 :
  11. /// </summary>
  12. public class DEntityBase
  13. {
  14. /// <summary>
  15. /// 主键
  16. /// </summary>
  17. [Description("主键")]
  18. [SugarColumn(IsPrimaryKey = true)]
  19. public string Id { get; set; }
  20. public DEntityBase()
  21. {
  22. var b = YitIdHelper.NextId();
  23. Id = b.ToString();
  24. }
  25. }
  26. }