コード例 #1
0
    public string getConnectionString(string connectionString)
    {
        string res = "";

        try
        {
            if (connectionString.Trim().Length == 0)
            {
                clsCommon common = new clsCommon();
                res = common.GetConfig("sqlconn");
            }
            else
            {
                return(connectionString);
            }
        }
        catch (Exception exp)
        {
            ecomserv.Common.clsLog clslog = new ecomserv.Common.clsLog();
            clslog.Log("connectionstring", exp.Message, true, exp);
        }
        return(res);
    }