a1a0369d
李曜臣
5-25代码优化
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
namespace FoodLabeling.Th.Application.Contracts.Options;
/// <summary>
/// 泰额版:新租户独立库连接串生成配置(appsettings FoodLabeling:TenantDatabase)
/// </summary>
public class FoodLabelingThTenantDatabaseOptions
{
public const string SectionName = "FoodLabeling:TenantDatabase";
/// <summary>
/// 库名模板,{tenant} 替换为规范化租户名,如 antis-foodlabeling-{tenant}
/// </summary>
public string DatabaseNameTemplate { get; set; } = "antis-foodlabeling-{tenant}";
public string Server { get; set; } = "127.0.0.1";
public int Port { get; set; } = 3306;
public string UserId { get; set; } = string.Empty;
public string Password { get; set; } = string.Empty;
public string CharSet { get; set; } = "utf8mb4";
}
|