/// <summary>
 /// 添加或者合并Tables
 /// </summary>
 /// <param name="sqlConfig"></param>
 /// <param name="sqlTables"></param>
 public static void AddOrCombine(this ISqlConfig sqlConfig, IEnumerable <IConfigTableInfo> sqlTables)
 {
     foreach (var l in sqlTables)
     {
         sqlConfig.AddOrCombine(l);
     }
 }
        /// <summary>
        /// 加载sql的配置文件
        /// </summary>
        /// <param name="sqlConfig"></param>
        /// <param name="configFilePath"></param>
        /// <param name="encoding"></param>
        public static void LoadFile(this ISqlConfig sqlConfig, string configFilePath, Encoding encoding)
        {
            var config = CommonExtensions.JsonToObjectNeedDefaultValue <JsonConfigTableInfo>(File.ReadAllText(configFilePath, encoding));

            if (string.IsNullOrEmpty(config.Name))
            {
                config.Name = Path.GetFileNameWithoutExtension(configFilePath);
            }
            sqlConfig.AddOrCombine(config);
        }