平安校园
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.

SqlsugarConst.cs 993 B

3 months ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. 
  2. //
  3. namespace SafeCampus.SqlSugar;
  4. /// <summary>
  5. /// SqlSugar系统常量类
  6. /// </summary>
  7. public class SqlSugarConst
  8. {
  9. /// <summary>
  10. /// 默认库ConfigId
  11. /// </summary>
  12. public const string DB_DEFAULT = "SafeCampus";
  13. /// <summary>
  14. /// 默认表主键
  15. /// </summary>
  16. public const string DB_PRIMARY_KEY = "Id";
  17. #region 数据库字段类型
  18. /// <summary>
  19. /// varchar(max)
  20. /// </summary>
  21. public const string N_VAR_CHAR_MAX = "nvarchar(max)";
  22. /// <summary>
  23. /// varchar(4000)
  24. /// </summary>
  25. public const string N_VAR_CHAR_4000 = "nvarchar(4000)";
  26. /// <summary>
  27. /// varchar(20)
  28. /// </summary>
  29. public const string N_VAR_CHAR_20 = "nvarchar(20)";
  30. /// <summary>
  31. /// mysql的longtext
  32. /// </summary>
  33. public const string LONG_TEXT = "longtext";
  34. /// <summary>
  35. /// sqlite的text
  36. /// </summary>
  37. public const string TEXT = "text";
  38. #endregion 数据库字段类型
  39. }