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.

types-cast.json 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. {
  2. "arrayTemplate": "%t[]",
  3. "setOfTemplate": "IEnumerable<%t>",
  4. "non-nullable-types": [
  5. "bool",
  6. "char",
  7. "short",
  8. "ushort",
  9. "int",
  10. "uint",
  11. "long",
  12. "ulong",
  13. "float",
  14. "double",
  15. "decimal",
  16. "NpgsqlTypes.NpgsqlPoint",
  17. "NpgsqlTypes.NpgsqlLSeg",
  18. "NpgsqlTypes.NpgsqlPath",
  19. "NpgsqlTypes.NpgsqlPolygon",
  20. "NpgsqlTypes.NpgsqlLine",
  21. "NpgsqlTypes.NpgsqlCircle",
  22. "NpgsqlTypes.NpgsqlBox",
  23. "NpgsqlTypes.NpgsqlInet",
  24. "Guid",
  25. "DateTime",
  26. "TimeSpan",
  27. "DateTimeOffset"
  28. ],
  29. "types": {
  30. "boolean": "bool",
  31. "smallint": "short",
  32. "integer": "int",
  33. "bigint": "long",
  34. "real": "float",
  35. "double precision": "double",
  36. "numeric": "decimal",
  37. "money": "decimal",
  38. "text": "string",
  39. "varchar": "string",
  40. "json": "string",
  41. "jsonb": "string",
  42. "xml": "string",
  43. "point": "NpgsqlTypes.NpgsqlPoint",
  44. "lseg": "NpgsqlTypes.NpgsqlLSeg",
  45. "path": "NpgsqlTypes.NpgsqlPath",
  46. "polygon": "NpgsqlTypes.NpgsqlPolygon",
  47. "line": "NpgsqlTypes.NpgsqlLine",
  48. "circle": "NpgsqlTypes.NpgsqlCircle",
  49. "box": "NpgsqlTypes.NpgsqlBox",
  50. "bit": {
  51. "-1": "bool",
  52. "1": "bool",
  53. "*": "System.Collections.BitArray"
  54. },
  55. "bit varying": "System.Collections.BitArray",
  56. "uuid": "Guid",
  57. "cidr": "NpgsqlTypes.NpgsqlInet",
  58. "inet": "System.Net.IPAddress",
  59. "macaddr": "System.Net.NetworkInformation.PhysicalAddress",
  60. "tsquery": "NpgsqlTypes.NpgsqlTsQuery",
  61. "tsvector": "NpgsqlTypes.NpgsqlTsVector",
  62. "date": "DateTime",
  63. "interval": "TimeSpan",
  64. "timestamp": "DateTime",
  65. "timestamp with time zone": "DateTime",
  66. "time": "TimeSpan",
  67. "time with time zone": "DateTimeOffset",
  68. "bytea": "byte[]",
  69. "name": "string",
  70. "\"char\"": "char",
  71. "char": "char",
  72. "oid": "uint",
  73. "xid": "uint",
  74. "cid": "uint",
  75. "oidvector": "uint[]",
  76. "record": "dynamic",
  77. "*": "object"
  78. },
  79. "reserved-words": [
  80. "abstract",
  81. "as",
  82. "base",
  83. "bool",
  84. "break",
  85. "byte",
  86. "case",
  87. "catch",
  88. "char",
  89. "checked",
  90. "class",
  91. "const",
  92. "continue",
  93. "decimal",
  94. "default",
  95. "delegate",
  96. "do",
  97. "double",
  98. "else",
  99. "enum",
  100. "event",
  101. "explicit",
  102. "extern",
  103. "false",
  104. "finally",
  105. "fixed",
  106. "float",
  107. "for",
  108. "foreach",
  109. "goto",
  110. "if",
  111. "implicit",
  112. "in",
  113. "int",
  114. "interface",
  115. "internal",
  116. "is",
  117. "lock",
  118. "long",
  119. "namespace",
  120. "new",
  121. "null",
  122. "object",
  123. "operator",
  124. "out",
  125. "override",
  126. "params",
  127. "private",
  128. "protected",
  129. "public",
  130. "readonly",
  131. "ref",
  132. "return",
  133. "sbyte",
  134. "sealed",
  135. "short",
  136. "sizeof",
  137. "stackalloc",
  138. "static",
  139. "string",
  140. "struct",
  141. "switch",
  142. "this",
  143. "throw",
  144. "true",
  145. "try",
  146. "typeof",
  147. "uint",
  148. "ulong",
  149. "unchecked",
  150. "unsafe",
  151. "ushort",
  152. "using",
  153. "var",
  154. "virtual",
  155. "void",
  156. "volatile",
  157. "while",
  158. "add",
  159. "alias",
  160. "get",
  161. "global",
  162. "partial",
  163. "remove",
  164. "set",
  165. "value",
  166. "where",
  167. "yield"
  168. ]
  169. }