/// <summary>
 /// 设置表名 并设置启用
 /// </summary>
 /// <param name="settingType"></param>
 /// <param name="text"></param>
 public void SetTableName(TableNameSettingType settingType, string text)
 {
     if (IsUsed == false)
     {
         IsUsed = true;
     }
     setSetting(DefaultSetting, settingType, text);
 }
 /// <summary>
 /// 设置表名 并设置启用
 /// </summary>
 /// <param name="settingName"></param>
 /// <param name="settingType"></param>
 /// <param name="text"></param>
 public void SetTableName(string settingName, TableNameSettingType settingType, string text)
 {
     if (IsUsed == false)
     {
         IsUsed = true;
     }
     if (string.IsNullOrEmpty(settingName))
     {
         setSetting(DefaultSetting, settingType, text);
     }
     else
     {
         TableNameSetting setting;
         if (Settings.TryGetValue(settingName, out setting) == false)
         {
             setting = new TableNameSetting();
             Settings[settingName] = setting;
         }
         setSetting(setting, settingType, text);
     }
 }
        private void setSetting(TableNameSetting setting, TableNameSettingType settingType, string text)
        {
            switch (settingType)
            {
            case TableNameSettingType.DatabaseNameNullText: setting.DatabaseNameNullText = text; break;

            case TableNameSettingType.DatabaseNamePrefixText: setting.DatabaseNamePrefixText = text; break;

            case TableNameSettingType.DatabaseNameSuffixText: setting.DatabaseNameSuffixText = text; break;

            case TableNameSettingType.SchemaNameNullText: setting.SchemaNameNullText = text; break;

            case TableNameSettingType.SchemaNamePrefixText: setting.SchemaNamePrefixText = text; break;

            case TableNameSettingType.SchemaNameSuffixText: setting.SchemaNameSuffixText = text; break;

            case TableNameSettingType.TableNamePrefixText: setting.TableNamePrefixText = text; break;

            case TableNameSettingType.TableNameSuffixText: setting.TableNameSuffixText = text; break;

            default:
                break;
            }
        }