using SqlSugar;
namespace Yi.Framework.SqlSugarCore
{
public class DbConnOptions
{
///
/// 连接字符串,必填
///
public string? Url { get; set; }
///
/// 数据库类型
///
public DbType? DbType { get; set; }
///
/// 开启种子数据
///
public bool EnabledDbSeed { get; set; } = false;
///
/// 开启读写分离
///
public bool EnabledReadWrite { get; set; } = false;
///
/// 开启codefirst
///
public bool EnabledCodeFirst { get; set; } = false;
///
/// 开启sql日志
///
public bool EnabledSqlLog { get; set; } = true;
///
/// 实体程序集
///
public List? EntityAssembly { get; set; }
///
/// 读写分离
///
public List? ReadUrl { get; set; }
}
}