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

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