示例#1
0
        public string readFromDataBase()
        {
            string returnValue = null;

            returnValue = Database.readFromDataBase("SELECT * FROM CUSTOMER");

            return(returnValue);
        }
示例#2
0
        public string getLicenseId(license.License lic)
        {
            string strLicenseId;

            string strSqlStatement = "select id from License " +
                                     "WHERE  productid = '" + lic.s_strProductID + "';";

            try
            {
                strLicenseId = Database.readFromDataBase(strSqlStatement);
            }
            catch (System.Exception e)
            {
                data.Log.debug("Some problems in attachLicense" + e.Message);
                return("InvalidNumber");
            }

            return(strLicenseId);
        }