FoodLabelingThTenantDatabaseOptions.cs
794 Bytes
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";
}