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