单元测试:连接字符串增加allowPublicKeyRetrieval=true防止出现Public Key Retrieval is not allowed 错误
This commit is contained in:
parent
2d3b074959
commit
8cf71a1595
|
@ -46,7 +46,7 @@ namespace UnitTest
|
||||||
|
|
||||||
private const string SqlConnectionString = "Data Source=.;Initial Catalog=UnitTest;User ID=sa;Password=sa";
|
private const string SqlConnectionString = "Data Source=.;Initial Catalog=UnitTest;User ID=sa;Password=sa";
|
||||||
private const string SQLiteConnectionString = "Data Source=UnitTest.db;";
|
private const string SQLiteConnectionString = "Data Source=UnitTest.db;";
|
||||||
private const string MySqlConnectionString = "Server=localhost;Database=UnitTest;Uid=argozhang;Pwd=argo@163.com;SslMode=none;";
|
private const string MySqlConnectionString = "Server=localhost;Database=UnitTest;Uid=argozhang;Pwd=argo@163.com;SslMode=none;allowPublicKeyRetrieval=true";
|
||||||
private const string NpgSqlConnectionString = "Server=localhost;Database=UnitTest;User ID=argozhang;Password=sa;";
|
private const string NpgSqlConnectionString = "Server=localhost;Database=UnitTest;User ID=argozhang;Password=sa;";
|
||||||
|
|
||||||
public static void ConfigureWebHost(IWebHostBuilder builder, string providerName = Longbow.Data.DatabaseProviderType.SqlServer)
|
public static void ConfigureWebHost(IWebHostBuilder builder, string providerName = Longbow.Data.DatabaseProviderType.SqlServer)
|
||||||
|
|
Loading…
Reference in New Issue