ExistsName() public method

是否存在该记录(模糊) 重载董苇
public ExistsName ( string strSql ) : bool
strSql string
return bool
Ejemplo n.º 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));
        }
Ejemplo n.º 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);
 }