调整项目依赖

This commit is contained in:
2023-03-27 19:09:57 +08:00
parent eb859fe730
commit 847a858d4c
21 changed files with 816 additions and 17 deletions

View File

@@ -0,0 +1,53 @@
namespace SqlSugar;
/// <summary>
/// 数据库连接字符串配置选项.
/// </summary>
public class ConnectionConfigOptions
{
/// <summary>
/// 配置ID.
/// </summary>
public string ConfigId { get; set; }
/// <summary>
/// 是否自定义配置.
/// </summary>
public bool IsCustom { get; set; }
/// <summary>
/// 是否主从分离.
/// </summary>
public bool IsMasterSlaveSeparation { get; set; }
/// <summary>
/// 配置列表.
/// </summary>
public List<DBConnectionConfig> ConfigList { get; set; }
}
/// <summary>
/// 数据库连接字符串配置.
/// </summary>
public class DBConnectionConfig
{
/// <summary>
/// 是否主库.
/// </summary>
public bool IsMaster { get; set; }
/// <summary>
/// 数据库名.
/// </summary>
public string ServiceName { get; set; }
/// <summary>
/// 数据库类型.
/// </summary>
public DbType dbType { get; set; }
/// <summary>
/// 自定义连接语句.
/// </summary>
public string connectionStr { get; set; }
}