internal static string ConvertNormalCS2EFFromConfig(string configSettings, ContextStartup contextStartup)
        {
            if (string.IsNullOrEmpty(configSettings))
            {
                return(configSettings);
            }
            var arr = configSettings.Split('=');

            if (arr.Length != 2)
            {
                return(configSettings);
            }
            if (arr[0] != "name")
            {
                return(configSettings);
            }
            try
            {
                var cs = System.Configuration.ConfigurationManager.ConnectionStrings[arr[1]].ConnectionString;
                if (!cs.StartsWith("metadata="))
                {
                    return(ConvertNormalCS2EF(cs, contextStartup));
                }
                return(configSettings);
            }
            catch
            {
                return(configSettings);
            }
        }
 internal static string ConvertNormalCS2EF(string connectionString, ContextStartup contextStartup)
 {
     return(ConvertNormalCS2EFFromConfig(connectionString, contextStartup));
 }