Пример #1
0
        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));
        }
Пример #2
0
        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);;
        }
Пример #3
0
 public ReadDBProcs(SqlCommand cmd)
 {
     _cmd        = cmd;
     _outputtype = Arguments.GetValByKey("outputtype") == string.Empty ? "htm" : Arguments.GetValByKey("outputtype");
     RDbo        = new ReadDbObjects();
 }
Пример #4
0
 public ReadDbObjects()
 {
     _outputtype = Arguments.GetValByKey("outputtype") == string.Empty ? "htm" : Arguments.GetValByKey("outputtype");
 }