mirror of
https://github.com/ThingsGateway/ThingsGateway.git
synced 2026-10-24 01:24:52 +08:00
33 lines
1.4 KiB
JSON
33 lines
1.4 KiB
JSON
{
|
|
//连接字符串配置
|
|
"ConnectionStrings": {
|
|
//Sqlsugar数据库配置
|
|
"SqlSugar": [
|
|
{
|
|
"ConfigId": "Default", //ID
|
|
//"ConnectionString": "server=localhost;Database=test;Uid=root;Pwd=111111;AllowLoadLocalInfile=true;", //连接字符串
|
|
//"DbType": "MySql", //数据库类型
|
|
"ConnectionString": "Data Source=Default.db;", //连接字符串
|
|
"DbType": "Sqlite", //数据库类型
|
|
"IsAutoCloseConnection": true, //是否自动释放
|
|
"IsInitDb": true, //是否初始化数据库,适用于codefirst
|
|
"IsUnderLine": false, //是否驼峰转下划线
|
|
"IsSeedData": true, //是否初始化种子数据
|
|
"IsUpdateSeedData": false //是否更新种子数据
|
|
},
|
|
{
|
|
"ConfigId": "ThingsGateway", //ID
|
|
//"ConnectionString": "server=localhost;Database=test;Uid=root;Pwd=111111;AllowLoadLocalInfile=true;", //连接字符串
|
|
//"DbType": "MySql", //数据库类型
|
|
"ConnectionString": "Data Source=ThingsGateway.db", //连接字符串
|
|
"DbType": "Sqlite", //数据库类型
|
|
"IsAutoCloseConnection": true, //是否自动释放
|
|
"IsInitDb": true, //是否初始化数据库,适用于codefirst
|
|
"IsUnderLine": false, //是否驼峰转下划线
|
|
"IsSeedData": true, //是否初始化种子数据
|
|
"IsUpdateSeedData": false //是否更新种子数据
|
|
}
|
|
|
|
]
|
|
}
|
|
} |