Ejemplo n.º 1
0
        public bool Delete(string where, Bitshare.DBUtility.TransactionInfo trans = null)
        {
            StringBuilder strSql = new StringBuilder();

            strSql.Append("update tbl_Base_Module set isDel=1");
            strSql.Append(" where ");
            strSql.Append(where);
            if (trans != null)
            {
                trans.AddCmd(strSql.ToString(), null);
                return(false);
            }
            else
            {
                return(DbHelperSQL.ExecuteSql(strSql.ToString()) > 0);
            }
        }
Ejemplo n.º 2
0
        public bool Delete(int Rid, Bitshare.DBUtility.TransactionInfo trans = null)
        {
            StringBuilder strSql = new StringBuilder();

            strSql.Append("update tbl_Base_Module set isDel=1");
            strSql.Append(" where Rid=@Rid");
            SqlParameter[] parameters =
            {
                new SqlParameter("@Rid", SqlDbType.Int, 4)
            };
            parameters[0].Value = Rid;
            if (trans != null)
            {
                trans.AddCmd(strSql.ToString(), parameters);
                return(false);
            }
            else
            {
                return(DbHelperSQL.ExecuteSql(strSql.ToString(), parameters) > 0);
            }
        }