UtilConstants.cs 3.1 KB

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