We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adcd252 commit 0dbc05bCopy full SHA for 0dbc05b
eFormAPI/eFormAPI.Web/Hosting/Helpers/PluginHelper.cs
@@ -47,12 +47,6 @@ public static List<IEformPlugin> GetPlugins(IConfiguration configuration)
47
{
48
var connectionString = dbContext.Database.GetDbConnection().ConnectionString;
49
50
-// var connectionStringMatch = Regex.Match(connectionString, @"(Database=\w*;)");//.Groups[1].Value;
51
-// if (connectionStringMatch.Groups.Count != 3)
52
-// {
53
-// throw new Exception("Error while parsing connection-string database name");
54
-// }
55
-
56
var dbNameSection = Regex.Match(connectionString, @"(Database=\w*;)").Groups[0].Value;
57
var dbPrefix = Regex.Match(connectionString, @"Database=(\d*)_").Groups[1].Value;
58
0 commit comments