| | |
| | | List<string> names = GetTabList(); |
| | | foreach (string name in names) |
| | | { |
| | | List<TabInfo> tabs = GetTabInfo(name); |
| | | GenerateMapper(mapperPath, name, tabs); |
| | | GenerateEntity(entityPath, name, tabs); |
| | | try |
| | | { |
| | | List<TabInfo> tabs = GetTabInfo(name); |
| | | GenerateMapper(mapperPath, name, tabs); |
| | | GenerateEntity(entityPath, name, tabs); |
| | | } |
| | | catch (Exception ec) |
| | | { |
| | | MessageBox.Show(name + "\r\n" + ec.Message); |
| | | } |
| | | } |
| | | |
| | | string path = Path.Combine(baseDir, "Result"); |
| | |
| | | } |
| | | |
| | | private void txtTabPrefix_TextChanged(object sender, EventArgs e) |
| | | { |
| | | txtChanged(sender, e); |
| | | } |
| | | |
| | | private void txtNS_TextChanged(object sender, EventArgs e) |
| | | { |
| | | txtChanged(sender, e); |
| | | } |
| | |
| | | |
| | | private SysDict FindSysDict(List<SysDict> list, string field) |
| | | { |
| | | IEnumerable<SysDict> rs = from sd in list where sd.field == field select sd; |
| | | if (null == list) return null; |
| | | |
| | | return rs.FirstOrDefault(); |
| | | return (from sd in list where sd.field == field select sd).FirstOrDefault(); |
| | | } |
| | | |
| | | private List<string> GetTabList() |