diff --git a/.gitignore b/.gitignore index 7842caf..1117400 100644 --- a/.gitignore +++ b/.gitignore @@ -259,9 +259,9 @@ paket-files/ # Python Tools for Visual Studio (PTVS) __pycache__/ *.pyc -/RIZO.Admin.WebApi/appsettings.Development.json + /CodeGenerate -/RIZO.Admin.WebApi/appsettings.Production.json + /RIZO.Admin.WebApi/wwwroot/uploads /RIZO.Admin.WebApi/wwwroot/Generatecode /RIZO.Admin.WebApi/wwwroot/export diff --git a/RIZO.Admin.WebApi/appsettings.Development.json b/RIZO.Admin.WebApi/appsettings.Development.json new file mode 100644 index 0000000..6355450 --- /dev/null +++ b/RIZO.Admin.WebApi/appsettings.Development.json @@ -0,0 +1,20 @@ +{ + "dbConfigs": [ + { + "Conn": "Data Source=139.224.232.211;User ID=root;Password=doantech123;Initial Catalog=ay2509055-guiyang-fluorescence-lmes;Port=3308;", + "DbType": 0, //数据库类型 MySql = 0, SqlServer = 1, Oracle = 3,PgSql = 4 + "ConfigId": "0", //多租户唯一标识 + "IsAutoCloseConnection": true + } + //...下面添加更多的数据库源 + ], + //代码生成数据库配置 + "CodeGenDbConfig": { + //代码生成连接字符串,注意{dbName}为固定格式,不要填写数据库名 + "Conn": "Data Source=139.224.232.211;User ID=root;Password=doantech123;Initial Catalog={dbName};", + "DbType": 1, + "IsAutoCloseConnection": true, + "DbName": "ay2509055-guiyang-fluoresence-lmes" //代码生成默认连接数据库,Oracle库是实例的名称 + } + +} diff --git a/RIZO.Admin.WebApi/appsettings.Production.json b/RIZO.Admin.WebApi/appsettings.Production.json new file mode 100644 index 0000000..8119b34 --- /dev/null +++ b/RIZO.Admin.WebApi/appsettings.Production.json @@ -0,0 +1,20 @@ +{ + "dbConfigs": [ + { + "Conn": "Data Source=139.224.232.211;User ID=root;Password=doantech123;Initial Catalog=ay2509055-guiyang-fluoresence-lmes;Port=3306;SslMode=Required", + "DbType": 0, //数据库类型 MySql = 0, SqlServer = 1, Oracle = 3,PgSql = 4 + "ConfigId": "0", //多租户唯一标识 + "IsAutoCloseConnection": true + } + //...下面添加更多的数据库源 + ], + //代码生成数据库配置 + "CodeGenDbConfig": { + //代码生成连接字符串,注意{dbName}为固定格式,不要填写数据库名 + "Conn": "Data Source=139.224.232.211;User ID=root;Password=doantech123;Initial Catalog={dbName};", + "DbType": 1, + "IsAutoCloseConnection": true, + "DbName": "ay2509055-guiyang-fluoresence-lmes" //代码生成默认连接数据库,Oracle库是实例的名称 + } + +}