using SqlSugar;
namespace NPin.Framework.SqlSugarCore.Abstractions;
public class DbConnOptions
{
///
/// 连接字符串 必填
///
public string? Url { get; set; }
///
/// 数据库类型
///
public DbType? DbType { get; set; }
///
/// 开启种子数据
///
public bool EnabledDbSeed { get; set; } = false;
///
/// 开启 CodeFirst 自动化表结构
///
public bool EnabledCodeFirst { get; set; } = false;
///
/// 开启sql日志
///
public bool EnabledSqlLog { get; set; } = true;
///
/// 实体程序集
///
public List? EntityAssembly { get; set; }
///
/// 开启读写分离
///
public bool EnabledReadWrite { get; set; } = false;
///
/// 读写分离
///
public List? ReadUrl { get; set; }
///
/// 开启Saas多租户
///
public bool EnabledSaasMultiTenancy { get; set; } = false;
}