版博士V2.0程序
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

26 строки
778 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 Models
  8. {
  9. public class BaseTable
  10. {
  11. [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
  12. public int Id { get; set; }
  13. public string ModifyUserCode { get; set; }
  14. [SugarColumn(UpdateServerTime = true, InsertServerTime = true)]
  15. public DateTime ModifyTime { get; set; }
  16. [SugarColumn(IsOnlyIgnoreUpdate = true)]
  17. public string CreateUserCode { get; set; }
  18. //insert时使用DB时间填充,不更新
  19. [SugarColumn(InsertServerTime = true, IsOnlyIgnoreUpdate = true)]
  20. public DateTime CreateTime { get; set; }= DateTime.Now;//程序中需要用
  21. }
  22. }