| | |
| | | public partial class FrmMyBatisPlus : Form |
| | | { |
| | | #region 成员变量+构造函数 |
| | | private static List<string> excludes = new List<string>() { "gid", "objectid", "eventid", "dirid", "depid", "verid", "createtime", "createuser", "updateuser", "updatetime", "geom", "shape_leng", "shape_area" }; |
| | | private static List<string> excludes = new List<string>() { "gid", "parentid", "objectid", "eventid", "dirid", "depid", "verid", "createtime", "createuser", "updateuser", "updatetime", "geom", "shape_leng", "shape_area" }; |
| | | |
| | | string baseDir = AppDomain.CurrentDomain.BaseDirectory; |
| | | |
| | |
| | | |
| | | str += strs[i].Length == 1 ? strs[i] : ToUpperFirst(strs[i]); |
| | | } |
| | | if (str.Length == 1 && firstUpper) |
| | | { |
| | | return str.ToUpper(); |
| | | } |
| | | |
| | | return str; |
| | | } |
| | |
| | | { |
| | | switch (ti.type) |
| | | { |
| | | case "timestamptz": |
| | | case "timestamp": |
| | | return "Timestamp"; |
| | | case "date": |
| | | return "LocalDate"; |
| | | case "time": |
| | | return "LocalTime"; |
| | | case "float4": // float |
| | | return "Float"; |
| | | case "float8": // double |
| | |
| | | case "int2": |
| | | case "int4": // int |
| | | return "Integer"; |
| | | default: |
| | | default: // text, varchar |
| | | return "String"; |
| | | } |
| | | } |