ExistsName() public method

是否存在该记录(模糊) 重载董苇
public ExistsName ( string strSql ) : bool
strSql string
return bool
示例#1
0
        //搜索是否存在代码名
        public bool SearchStCode(string stokename)
        {
            string str = string.Format("select count(1) from T_STOCK where STOCK_CODE like '%{0}%'", stokename);

            D.StockDAL dsi = new D.StockDAL();
            return(dsi.ExistsName(str));
        }
示例#2
0
 //搜索是否存在股票名
 public bool SearchStName(string stokename)
 {
     string str = string.Format("select count(1) from T_STOCK where STOCK_NAME like '%{0}%'", stokename);
     D.StockDAL dsi = new D.StockDAL();
     return dsi.ExistsName(str);
 }