YD_Event.Admin/YD_Event.Core/Options/DbConnectionOptions.cs

30 lines
654 B
C#
Raw Permalink Normal View History

2025-12-17 10:32:52 +08:00
using Furion.ConfigurableOptions;
2025-12-17 11:12:13 +08:00
namespace YD_Event.Core.Options;
2025-12-17 10:32:52 +08:00
/// <summary>
/// 数据库选项配置
/// </summary>
public sealed class DbConnectionOptions : IConfigurableOptions
{
/// <summary>
/// 数据库配置
/// </summary>
public List<ConnectionConfigExt> Connections { get; set; }
}
/// <summary>
/// 数据库连接扩展
/// </summary>
public class ConnectionConfigExt : ConnectionConfig
{
/// <summary>
/// 是否初始化数据库
/// </summary>
public bool EnableInitDb { get; set; }
/// <summary>
/// 启用表数据初始化
/// </summary>
public bool EnableSeed { get; set; }
}