diff --git a/src/Falcon.StoredProcedureRunnerTests/AppSettings.json b/src/Falcon.StoredProcedureRunnerTests/AppSettings.json
index 607d373..6742153 100644
--- a/src/Falcon.StoredProcedureRunnerTests/AppSettings.json
+++ b/src/Falcon.StoredProcedureRunnerTests/AppSettings.json
@@ -1,7 +1,7 @@
{
- "db": {
- "ver": "11",
- "oracle": "DATA SOURCE=(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST =47.103.62.60)(PORT = 1521)))(CONNECT_DATA = (SERVICE_NAME = orcl)));PASSWORD = harmonyhis;PERSIST SECURITY INFO = True;USER ID = HARMONYHIS;Connection Lifetime = 120;Connection Timeout = 60",
- "sqlserver": "Server=.\\SQLSERVER2008R2;Database=test;User ID=sa;Password=111;"
+ "db": { //存储在客户端机密中
+ "ver": "",
+ "oracle": "",
+ "sqlserver": ""
}
}
diff --git a/src/Falcon.StoredProcedureRunnerTests/Falcon.StoredProcedureRunnerTests.csproj b/src/Falcon.StoredProcedureRunnerTests/Falcon.StoredProcedureRunnerTests.csproj
index 9175836..48fc363 100644
--- a/src/Falcon.StoredProcedureRunnerTests/Falcon.StoredProcedureRunnerTests.csproj
+++ b/src/Falcon.StoredProcedureRunnerTests/Falcon.StoredProcedureRunnerTests.csproj
@@ -5,11 +5,14 @@
enable
false
+
+ 44468cb2-b159-42bd-a799-b3f004be5f68
+
diff --git a/src/Falcon.StoredProcedureRunnerTests/RunnerTests.cs b/src/Falcon.StoredProcedureRunnerTests/RunnerTests.cs
index 449e529..32f3f5f 100644
--- a/src/Falcon.StoredProcedureRunnerTests/RunnerTests.cs
+++ b/src/Falcon.StoredProcedureRunnerTests/RunnerTests.cs
@@ -22,6 +22,7 @@ namespace Falcon.StoredProcedureRunner.Tests
System.Console.WriteLine("SqlserverTest start!");
var configurationBuilder = new ConfigurationBuilder();
configurationBuilder.AddJsonFile("AppSettings.json");
+ configurationBuilder.AddUserSecrets(this.GetType().Assembly);
var config = configurationBuilder.Build();
var sql = config.GetSection("db:sqlserver").Value;
var buider = new DbContextOptionsBuilder();
@@ -47,6 +48,7 @@ namespace Falcon.StoredProcedureRunner.Tests
System.Console.WriteLine("OracleTest start!");
var configurationBuilder = new ConfigurationBuilder();
configurationBuilder.AddJsonFile("AppSettings.json");
+ configurationBuilder.AddUserSecrets(this.GetType().Assembly);
var config = configurationBuilder.Build();
var ora = config.GetSection("db:oracle").Value;
var oraVer = config.GetSection("db:ver").Value;