Skip to content

Commit

Permalink
更新支持firebird、达梦、人大金仓数据库。
Browse files Browse the repository at this point in the history
  • Loading branch information
cyq1162 committed Dec 25, 2023
1 parent 68f0f33 commit eb6f399
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 38 deletions.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -163,23 +163,23 @@ private void ddlProvider_SelectedIndexChanged(object sender, EventArgs e)
switch (index)
{
case 0:
txtConn.Text = "server=.;database=demo;uid=sa;pwd=123456";
txtConn.Text = "provider=ms;server=.;database=demo;uid=sa;pwd=123456";
txtTip.Text = "";
break;
case 1:
txtConn.Text = "Provider=MSDAORA;Data Source=ip/dbname;User ID=sa;Password=123456";
txtTip.Text = "";
break;
case 2:
txtConn.Text = "host=127.0.0.1;Port=3306;Database=demo;uid=sa;pwd=123456";
txtConn.Text = "provider=mysql;host=127.0.0.1;Port=3306;Database=demo;uid=sa;pwd=123456";
txtTip.Text = "该功能引用:MySql.Data.dll";
break;
case 3:
txtConn.Text = "Data Source={0}xxx.db;failifmissing=false";
txtTip.Text = "该功能引用:System.Data.SQLite.dll(注意x86或x64的区别)";
break;
case 4:
txtConn.Text = "Data Source=127.0.0.1;Port=5000;UID=sa;PWD='123456';Database='Demo'";
txtConn.Text = "provider=sybase;Data Source=127.0.0.1;Port=5000;UID=sa;PWD='123456';Database='Demo'";
txtTip.Text = "该功能引用:Sybase.AdoNet2.AseClient.dll(Sybase软件安装目录下有)";
break;
case 5:
Expand All @@ -203,13 +203,25 @@ private void ddlProvider_SelectedIndexChanged(object sender, EventArgs e)
txtTip.Text = "";
break;
case 10:
txtConn.Text = "server=.;port=5432;database=xx;uid=xx;pwd=xx";
txtConn.Text = "provider=postgre;server=.;port=5432;database=xx;uid=xx;pwd=xx";
txtTip.Text = "该功能引用:Npgsql.dll";
break;
case 11:
case 11://db2
txtConn.Text = "Provider=IBMDADB2.IBMDBCL1;Data Source=dbname;Persist Security Info=True;User ID=username;pwd=123456;Location=ip";
txtTip.Text = "该功能引用:IBM.Data.DB2.dll(DB2软件安装目录下有)";
break;
case 12://firebird
txtConn.Text = "provider=firebird;user id=SYSDBA;password=123456;database={0}test.dbf;server type=Default;data source=127.0.0.1;port number=3050";
txtTip.Text = "该功能引用:FirebirdSql.Data.FirebirdClient.dll";
break;
case 13://dameng
txtConn.Text = "provider=dameng;user id=SYSDBA;password=123456789;data source=127.0.0.1;port number=3050;schema=test;";
txtTip.Text = "该功能引用:DmProvider.dll";
break;
case 14://kingbasees
txtConn.Text = "provider=kingbasees;server=127.0.0.1;User Id=system;Password=123456;Database=test;Port=54321;schema=public;";
txtTip.Text = "该功能引用:Kdbndp.dll";
break;

}
//}
Expand Down Expand Up @@ -250,13 +262,13 @@ private void btnBuild_Click(object sender, EventArgs e)
{
System.IO.Directory.CreateDirectory(path);
}
catch(Exception err)
catch (Exception err)
{
MessageBox.Show(err.Message, "Tip");
return;
}
}

string name = SaveConfig();
btnBuild.Enabled = false;
Thread thread = new Thread(new ParameterizedThreadStart(BuildCSCode.Create));
Expand Down Expand Up @@ -327,12 +339,12 @@ private void lnkOpenFolder_LinkClicked(object sender, LinkLabelLinkClickedEventA

private void btnOpenProjectFolder_Click(object sender, EventArgs e)
{
string path=txtProjectPath.Text.Trim();
string path = txtProjectPath.Text.Trim();
if (!string.IsNullOrEmpty(path))
{
if (!System.IO.Directory.Exists(path))
{
MessageBox.Show("Directory not Exists :" + path,"Tip");
MessageBox.Show("Directory not Exists :" + path, "Tip");
return;
}
System.Diagnostics.Process.Start(path);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,7 @@
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[assembly: AssemblyTitle("CYQ.Data 数据层(ORM)框架 项目配置工具")]
[assembly: AssemblyDescription("论坛:http://www.cyqdata.com/cyqdata")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("秋式软件 (2022-09-26)")]
[assembly: AssemblyCompany("秋式软件 (2023-12-25)")]
[assembly: AssemblyProduct("CYQ.Data 数据层(ORM)框架 项目配置工具")]
[assembly: AssemblyCopyright("版权所有 (C) 秋式软件 2010-2020")]
[assembly: AssemblyTrademark("CYQ.Data.ProjectTool")]
Expand All @@ -29,5 +29,5 @@
// 内部版本号
// 修订号
//
[assembly: AssemblyVersion("2.2.0.0")]
[assembly: AssemblyFileVersion("2.2.0.0")]
[assembly: AssemblyVersion("2.3.0.0")]
[assembly: AssemblyFileVersion("2.3.0.0")]

0 comments on commit eb6f399

Please sign in to comment.