UtilConstants.cs 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Dynamic;
  4. namespace SqlSugar.BzTDengineCore
  5. {
  6. internal static class UtilConstants
  7. {
  8. public const string Dot = ".";
  9. public const char DotChar = '.';
  10. internal const string Space = " ";
  11. internal const char SpaceChar = ' ';
  12. internal const string AssemblyName = "SqlSugar";
  13. internal const string ReplaceKey = "{662E689B-17A1-4D06-9D27-F29EAB8BC3D6}";
  14. internal const string ReplaceCommaKey = "{112A689B-17A1-4A06-9D27-A39EAB8BC3D5}";
  15. internal static Type IntType = typeof(int);
  16. internal static Type LongType = typeof(long);
  17. internal static Type GuidType = typeof(Guid);
  18. internal static Type BoolType = typeof(bool);
  19. internal static Type BoolTypeNull = typeof(bool?);
  20. internal static Type ByteType = typeof(byte);
  21. internal static Type ObjType = typeof(object);
  22. internal static Type DobType = typeof(double);
  23. internal static Type FloatType = typeof(float);
  24. internal static Type ShortType = typeof(short);
  25. internal static Type DecType = typeof(decimal);
  26. internal static Type StringType = typeof(string);
  27. internal static Type DateType = typeof(DateTime);
  28. internal static Type DateTimeOffsetType = typeof(DateTimeOffset);
  29. internal static Type TimeSpanType = typeof(TimeSpan);
  30. internal static Type ByteArrayType = typeof(byte[]);
  31. internal static Type ModelType = typeof(ModelContext);
  32. internal static Type DynamicType = typeof(ExpandoObject);
  33. internal static Type Dicii = typeof(KeyValuePair<int, int>);
  34. internal static Type DicIS = typeof(KeyValuePair<int, string>);
  35. internal static Type DicSi = typeof(KeyValuePair<string, int>);
  36. internal static Type DicSS = typeof(KeyValuePair<string, string>);
  37. internal static Type DicOO = typeof(KeyValuePair<object, object>);
  38. internal static Type DicSo = typeof(KeyValuePair<string, object>);
  39. internal static Type DicArraySS = typeof(Dictionary<string, string>);
  40. internal static Type DicArraySO = typeof(Dictionary<string, object>);
  41. public static Type SugarType = typeof(SqlSugarProvider);
  42. internal static Type[] NumericalTypes = new Type[]
  43. {
  44. typeof(int),
  45. typeof(uint),
  46. typeof(byte),
  47. typeof(sbyte),
  48. typeof(long),
  49. typeof(ulong),
  50. typeof(short),
  51. typeof(ushort),
  52. };
  53. internal static string[] DateTypeStringList = new string[]
  54. {
  55. "Year",
  56. "Month",
  57. "Day",
  58. "Hour",
  59. "Second" ,
  60. "Minute",
  61. "Millisecond",
  62. "Date"
  63. };
  64. }
  65. }