public string GetConnectionString(string pathToFile)
{
string text = System.IO.File.ReadAllText(pathToFile);
JavaScriptSerializer javaScriptSerializer = new JavaScriptSerializer();
var jsonObject = javaScriptSerializer.Deserialize<dynamic>(text);
return jsonObject["Data"]["DefaultConnection"]["ConnectionString"];
}
No comments:
Post a Comment