- 将迁移文件按数据库类型分目录存放 (Migrations/SQLite, MySQL, PostgreSQL, SqlServer) - 新增各数据库提供程序的 DesignTimeDbContextFactory,支持 --provider 参数切换 - 新增 ProviderAppDataContexts,定义各数据库对应的 AppDataContext 子类 - DatabaseExtensions 增加 AddProviderAppDataContext 方法,按配置自动注册对应 DbContext - 修正 MySQL 提供程序调用方式 (UseMySql -> UseMySQL) - UserEntity 模型增加新字段 - 更新 add-migration.ps1
25 lines
716 B
JSON
25 lines
716 B
JSON
{
|
|
"Logging": {
|
|
"LogLevel": {
|
|
"Default": "Information",
|
|
"Microsoft.AspNetCore": "Warning"
|
|
}
|
|
},
|
|
"AllowedHosts": "*",
|
|
"Jwt": {
|
|
"Issuer": "Avalonia-API",
|
|
"Audience": "Avalonia-Client",
|
|
"SigningKey": "change-this-development-signing-key-at-least-32-bytes",
|
|
"AccessTokenMinutes": 60,
|
|
"RefreshTokenDays": 30
|
|
},
|
|
"DatabaseConfiguration": {
|
|
"Provider": "MySQL",
|
|
"ConnectionString": "Server=127.0.0.1;Port=3306;Database=avalonia-api;Uid=root;Pwd=123456;Max Pool Size=100;Min Pool Size=5;AllowZeroDateTime=True;AllowLoadLocalInfile=true;SslMode=Required",
|
|
"AutoMigrate": true,
|
|
"RecreateDatabase": false,
|
|
"EnableDetailedLog": false,
|
|
"Timeout": 30
|
|
}
|
|
}
|