版博士V2.0程序
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.

пре 2 година
12345678910111213141516171819202122232425
  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. }