csharp.json 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. {
  2. "data": [
  3. {
  4. "expression": "${pk}",
  5. "text": "主键对象,同${column}"
  6. },
  7. {
  8. "expression": "${context}",
  9. "text": "",
  10. "children": [
  11. {
  12. "expression": "${context.dbName}",
  13. "text": "数据库名"
  14. },
  15. {
  16. "expression": "${context.className}",
  17. "text": "类名"
  18. },
  19. {
  20. "expression": "${context.packageName}",
  21. "text": "namespace"
  22. },
  23. {
  24. "expression": "${context.pkName}",
  25. "text": "表主键名"
  26. }
  27. ]
  28. },
  29. {
  30. "expression": "${table}",
  31. "text": "",
  32. "children": [
  33. {
  34. "expression": "${table.tableName}",
  35. "text": "数据库表名"
  36. },
  37. {
  38. "expression": "${table.comment}",
  39. "text": "表注释"
  40. }
  41. ]
  42. },
  43. {
  44. "expression": "#foreach($column in $csharpColumns) #end",
  45. "text": "",
  46. "children": [
  47. {
  48. "expression": "${velocityCount}",
  49. "text": "foreach循环下标,从1开始"
  50. },
  51. {
  52. "expression": "${column.columnName}",
  53. "text": "表中字段名"
  54. },
  55. {
  56. "expression": "${column.type}",
  57. "text": "字段的数据库类型"
  58. },
  59. {
  60. "expression": "${column.field}",
  61. "text": "字段名"
  62. },
  63. {
  64. "expression": "${column.property}",
  65. "text": "属性名"
  66. },
  67. {
  68. "expression": "${column.fieldType}",
  69. "text": "字段类型"
  70. },
  71. {
  72. "expression": "${column.isIdentity}",
  73. "text": "是否自增,返回boolean"
  74. },
  75. {
  76. "expression": "${column.isPk}",
  77. "text": "是否主键,返回boolean"
  78. },
  79. {
  80. "expression": "${column.isIdentityPk}",
  81. "text": "是否自增主键,返回boolean"
  82. },
  83. {
  84. "expression": "${column.comment}",
  85. "text": "字段注释"
  86. }
  87. ]
  88. }
  89. ]
  90. }