DalOptions.cs 902 Bytes
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; }
    }
}