mirror of
https://github.com/nsnail/NetAdmin.git
synced 2025-05-04 20:12:51 +08:00
25 lines
627 B
C#
25 lines
627 B
C#
using NetAdmin.Infrastructure.Configuration.Dependency;
|
|
using DataType = FreeSql.DataType;
|
|
|
|
namespace NetAdmin.Infrastructure.Configuration.Options;
|
|
|
|
/// <summary>
|
|
/// 数据库连接字符串配置
|
|
/// </summary>
|
|
public sealed record DatabaseOptions : OptionAbstraction
|
|
{
|
|
/// <summary>
|
|
/// 链接字符串
|
|
/// </summary>
|
|
public string ConnStr { get; init; }
|
|
|
|
/// <summary>
|
|
/// 数据库类型
|
|
/// </summary>
|
|
public DataType DbType { get; init; }
|
|
|
|
/// <summary>
|
|
/// 种子数据路径(相对)
|
|
/// </summary>
|
|
public string SeedDataRelativePath { get; init; }
|
|
} |