DalOptions.cs
902 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using SqlSugar;
namespace RCS.Dal
{
/// <summary>
/// 数据库配置
/// </summary>
public class DalOptions
{
/// <summary>
/// 默认架构(数据库名)
/// </summary>
public string Scheme { get; set; }
public List<DalOption> Options { get; set; }
}
/// <summary>
/// 单个配置
/// </summary>
public class DalOption
{
/// <summary>
/// 此连接的架构(数据库名)
/// </summary>
public string Scheme { get; set; }
public DbType Type { get; set; }
public string ConStr { get; set; }
/// <summary>
/// 是否监听sql
/// </summary>
public bool MonitorCommand { get; set; }
/// <summary>
/// 是否同步结构
/// </summary>
public bool AutoSyncStructure { get; set; }
}
}