Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
Ftt_Common
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Ftt_Common
Commits
7d5b5f9d
Commit
7d5b5f9d
authored
Oct 07, 2020
by
tr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、数据库开发工具:工具类优化
parent
7dd0be7c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
1 deletion
+22
-1
Tools.exe
AppHome/Tools.exe
+0
-0
Tools.pdb
AppHome/Tools.pdb
+0
-0
Utils.cs
Tools/MyUtils/Utils.cs
+21
-0
wDBTools.cs
Tools/UI/wDBTools.cs
+1
-1
No files found.
AppHome/Tools.exe
View file @
7d5b5f9d
No preview for this file type
AppHome/Tools.pdb
View file @
7d5b5f9d
No preview for this file type
Tools/MyUtils/Utils.cs
View file @
7d5b5f9d
using
System
;
using
System.Collections.Generic
;
using
System.Data
;
using
System.Diagnostics
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
...
...
@@ -43,6 +44,26 @@ namespace Tools.MyUtils
/// </summary>
public
static
string
TempPath
=>
$@"
{
Application
.
StartupPath
}
\temp"
;
#
endregion
#
region
打开文件
/// <summary>
/// 打开指定文件
/// </summary>
/// <param name="fileName">文件名称</param>
public
static
void
OpenFile
(
string
fileName
)
{
Process
.
Start
(
fileName
);
}
/// <summary>
/// 用记事本打开指定文件
/// </summary>
/// <param name="fileName">文件名称</param>
public
static
void
OpenFileWithNotepad
(
string
fileName
)
{
Process
.
Start
(
"notepad.exe"
,
fileName
);
}
#
endregion
/// <summary>
...
...
Tools/UI/wDBTools.cs
View file @
7d5b5f9d
...
...
@@ -242,7 +242,7 @@ namespace Tools.UI
//执行SQL
this
.
_db
.
ExecNonSql
(
this
.
_link
,
new
List
<
string
>
{
sql
});
Utils
.
Tip
(
"Sql生成并执行成功!"
);
//Process.Start
(sqlFileName);
Utils
.
OpenFileWithNotepad
(
sqlFileName
);
}
catch
(
Exception
ex
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment