Skip to content

Commit c44ae1c

Browse files
committed
Fixed anjoy8#169 bug
1 parent a26cf8e commit c44ae1c

3 files changed

Lines changed: 23 additions & 5 deletions

File tree

Blog.Core.Api/appsettings.json

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"urls": "http://*:8081",//web服务端口
2+
"urls": "http://*:8081", //web服务端口
33
"Logging": {
44
"LogLevel": {
55
"Default": "Information", //加入Default否则log4net本地写入不了日志
@@ -74,7 +74,9 @@
7474
SqlServer = 1,
7575
Sqlite = 2,
7676
Oracle = 3,
77-
PostgreSQL = 4
77+
PostgreSQL = 4,
78+
Dm = 5,//达梦
79+
Kdbndp = 6,//人大金仓
7880
*/
7981
{
8082
"ConnId": "WMBLOG_SQLITE",
@@ -119,6 +121,20 @@
119121
"Enabled": false,
120122
"HitRate": 10,
121123
"Connection": "Data Source=127.0.0.1/ops;User ID=OPS;Password=123456;Persist Security Info=True;Connection Timeout=60;"
124+
},
125+
{
126+
"ConnId": "WMBLOG_DM",
127+
"DBType": 5,
128+
"Enabled": false,
129+
"HitRate": 10,
130+
"Connection": "PORT=5236;DATABASE=DAMENG;HOST=localhost;PASSWORD=SYSDBA;USER ID=SYSDBA;"
131+
},
132+
{
133+
"ConnId": "WMBLOG_KDBNDP",
134+
"DBType": 6,
135+
"Enabled": true,
136+
"HitRate": 10,
137+
"Connection": "Server=127.0.0.1;Port=54321;UID=SYSTEM;PWD=system;database=SQLSUGAR4XTEST1;"
122138
}
123139
],
124140
"Audience": {

Blog.Core.Common/DB/BaseDBConfig.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ public enum DataBaseType
111111
SqlServer = 1,
112112
Sqlite = 2,
113113
Oracle = 3,
114-
PostgreSQL = 4
114+
PostgreSQL = 4,
115+
Dm = 5,
116+
Kdbndp = 6,
115117
}
116118
public class MutiDBOperate
117119
{

Blog.Core.Model/Seed/DBSeed.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,8 @@ public static async Task SeedAsync(MyContext myContext, string WebRootPath)
287287
catch (Exception ex)
288288
{
289289
throw new Exception(
290-
$"1、若是Mysql,查看常见问题:https://github.com/anjoy8/Blog.Core/issues/148#issue-776281770" +
291-
$"2、若是Oracle,查看常见问题:https://github.com/anjoy8/Blog.Core/issues/148#issuecomment-752340231" +
290+
$"1、若是Mysql,查看常见问题:https://github.com/anjoy8/Blog.Core/issues/148#issue-776281770 \n" +
291+
$"2、若是Oracle,查看常见问题:https://github.com/anjoy8/Blog.Core/issues/148#issuecomment-752340231 \n" +
292292
"3、其他错误:" + ex.Message);
293293
}
294294
}

0 commit comments

Comments
 (0)