Files
ThingsGateway/framework/ThingsGateway.Web.Core/Configuration/Database.json
T
Kimdiego2098 0eafc07184 更新文件
2023-08-07 16:30:23 +08:00

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 //是否更新种子数据
}
]
}
}