基础服务api
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.
 
 

25 lines
656 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 BPA.SAAS.Manage.Core.Base
  8. {
  9. public abstract class IBaseEntity
  10. {
  11. /// <summary>
  12. /// 主键 Guid
  13. /// </summary>
  14. [SugarColumn(IsPrimaryKey = true, ColumnDataType = "Nvarchar(64)", IsNullable = false)]
  15. public string Id { get; set; }
  16. public DateTime CreateAt { get; set; } = DateTime.Now;
  17. public string CreateBy { get; set; }
  18. /// <summary>
  19. /// 是否删除
  20. /// </summary>
  21. public int IsDeleted { get; set; } = 0;
  22. }
  23. }