Ejemplo n.º 1
0
        public bool Open()
        {
            DataSet dsCustom = dbClient.GetData("Select 1 Test");

            if (dsCustom.Tables[0].Rows.Count > 0)
            {
                return(true);
            }
            return(false);
        }
Ejemplo n.º 2
0
        public bool IsExistsAccount(string sAccount)
        {
            DataSet dsCustom = dbClient.GetData(string.Format("SELECT Account FROM Account WHERE Account ='{0}'", sAccount));

            if (dsCustom.Tables[0].Rows.Count > 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }