| | |
| | | get |
| | | { |
| | | ConnectionConfig connectConfig = null; |
| | | switch (XhsParasHelper.Xhs.DataBase.DbType) |
| | | switch (AssetsParasHelper.Assets.DataBase.DbType) |
| | | { |
| | | case DbType.PostgreSql: |
| | | { |
| | |
| | | return new ConnectionConfig() |
| | | { |
| | | DbType = SqlSugar.DbType.PostgreSQL,//数据库类型 |
| | | ConnectionString = XhsParasHelper.Xhs.DataBase.PostgreSql.ConnectString, |
| | | ConnectionString = HStation.Settings.AssetsParasHelper.Assets.DataBase.PostgreSql.ConnectString, |
| | | IsAutoCloseConnection = true,//是否自动关闭 |
| | | MoreSettings = new ConnMoreSettings() |
| | | { |
| | |
| | | return new ConnectionConfig() |
| | | { |
| | | DbType = SqlSugar.DbType.Sqlite,//数据库类型 |
| | | ConnectionString = XhsParasHelper.Xhs.DataBase.SQLite.ConnectString, |
| | | ConnectionString = AssetsParasHelper.Assets.DataBase.SQLite.ConnectString, |
| | | IsAutoCloseConnection = true,//是否自动关闭 |
| | | MoreSettings = new ConnMoreSettings() |
| | | { |