using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace System.Common
{
    public class BaseMysqlContext
    {
        public static string DB_ConnectionString { get; set; }
        public BaseMysqlContext()
        {
            Db = new SqlSugarClient(new ConnectionConfig()
            {
                ConnectionString = DB_ConnectionString,
                DbType = DbType.MySql,
                IsAutoCloseConnection = true,
                InitKeyType = InitKeyType.SystemTable,
                IsShardSameThread = false
            });
        }
        public SqlSugarClient Db;
    }
}
