获取EF连接字符串

    技术2022-05-13  0

    connectionString = ConfigurationManager.ConnectionStrings["PMSDBEntities"].ConnectionString; string regexStr = "connection string=/"(?<key>.*?)/""; Regex r = new Regex(regexStr, RegexOptions.IgnoreCase); Match mc = r.Match(connectionString); connectionString = mc.Groups["key"].Value; 


    最新回复(0)