public static string AnchorHelper(string anchorstring, params object[] p) { string _anchorstring = anchorstring; if (Arguments.GetValByKey("launchwindow").ToLower() == "true") { _anchorstring = anchorstring.Replace(" >", " target='blank' >"); } return(string.Format(_anchorstring, p)); }
public static string ConnectionBuilder(Dictionary <string, string> parmcoll) { SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder(); foreach (var parameter in parmcoll.Keys) { string cmd = parameter.Trim().Replace("_", " "); if (builder.ContainsKey(cmd)) { builder[cmd] = parmcoll[parameter].Trim().Replace(";", ""); } } if (Arguments.GetValByKey("ShowConnectionString").Length > 0) { Console.WriteLine(builder.ConnectionString); } return(builder.ConnectionString);; }
public ReadDBProcs(SqlCommand cmd) { _cmd = cmd; _outputtype = Arguments.GetValByKey("outputtype") == string.Empty ? "htm" : Arguments.GetValByKey("outputtype"); RDbo = new ReadDbObjects(); }
public ReadDbObjects() { _outputtype = Arguments.GetValByKey("outputtype") == string.Empty ? "htm" : Arguments.GetValByKey("outputtype"); }