Commit bbfd052c authored by tr's avatar tr

1、导出优化:模型和SQL导出直接以记事本打开

parent 7d5b5f9d
No preview for this file type
No preview for this file type
...@@ -205,8 +205,8 @@ namespace Tools.UI ...@@ -205,8 +205,8 @@ namespace Tools.UI
var bytes = Encoding.UTF8.GetBytes(model); var bytes = Encoding.UTF8.GetBytes(model);
fs.Write(bytes, 0, bytes.Length); fs.Write(bytes, 0, bytes.Length);
} }
Utils.Tip("模型类导出成功!"); //Utils.Tip("模型类导出成功!");
//Process.Start(modelFileName); Utils.OpenFileWithNotepad(modelFileName);
} }
catch (Exception ex) catch (Exception ex)
{ {
...@@ -241,7 +241,7 @@ namespace Tools.UI ...@@ -241,7 +241,7 @@ namespace Tools.UI
} }
//执行SQL //执行SQL
this._db.ExecNonSql(this._link, new List<string> { sql }); this._db.ExecNonSql(this._link, new List<string> { sql });
Utils.Tip("Sql生成并执行成功!"); //Utils.Tip("Sql生成并执行成功!");
Utils.OpenFileWithNotepad(sqlFileName); Utils.OpenFileWithNotepad(sqlFileName);
} }
catch (Exception ex) catch (Exception ex)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment