-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a9b6c1
commit 47c70f5
Showing
62 changed files
with
5,762 additions
and
927 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> | ||
</startup> | ||
</configuration> | ||
<system.data> | ||
<DbProviderFactories> | ||
<remove invariant="MySql.Data.MySqlClient" /> | ||
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" /> | ||
</DbProviderFactories> | ||
</system.data></configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace OpenDataDBBuilder.Business.VO | ||
{ | ||
public class DBConfig | ||
{ | ||
public String Db { get; set; } | ||
public String Server { get; set; } | ||
public String Port { get; set; } | ||
public String User { get; set; } | ||
public String Password { get; set; } | ||
public String DbName { get; set; } | ||
|
||
public String getConnectionString() | ||
{ | ||
StringBuilder conn = new StringBuilder("Server={0};Port={1};Database={2};Uid={3};Pwd={4};"); | ||
conn.Replace("{0}", Server); | ||
conn.Replace("{1}", Port); | ||
conn.Replace("{2}", DbName); | ||
conn.Replace("{3}", User); | ||
conn.Replace("{4}", Password); | ||
return conn.ToString(); | ||
} | ||
|
||
public String getConnectionStringNoDB() | ||
{ | ||
StringBuilder conn = new StringBuilder("Server={0};Port={1};Uid={3};Pwd={4};"); | ||
conn.Replace("{0}", Server); | ||
conn.Replace("{1}", Port); | ||
conn.Replace("{3}", User); | ||
conn.Replace("{4}", Password); | ||
return conn.ToString(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.