/// <summary>
        ///  更新一条数据
        /// </summary>
        public void Update(MobileSoft.Model.Information.Tb_Information_ConsumerGuid model)
        {
            int rowsAffected;

            SqlParameter[] parameters =
            {
                new SqlParameter("@GuideId",      SqlDbType.BigInt,      8),
                new SqlParameter("@BussId",       SqlDbType.BigInt,      8),
                new SqlParameter("@Title",        SqlDbType.NVarChar,  100),
                new SqlParameter("@GudPublisher", SqlDbType.NVarChar,  100),
                new SqlParameter("@PubulishDate", SqlDbType.DateTime),
                new SqlParameter("@GudContent",   SqlDbType.NVarChar),
                new SqlParameter("@GudImage",     SqlDbType.NVarChar,  100),
                new SqlParameter("@NumID",        SqlDbType.BigInt,      8),
                new SqlParameter("@IsDelete",     SqlDbType.SmallInt, 2)
            };
            parameters[0].Value = model.GuideId;
            parameters[1].Value = model.BussId;
            parameters[2].Value = model.Title;
            parameters[3].Value = model.GudPublisher;
            parameters[4].Value = model.PubulishDate;
            parameters[5].Value = model.GudContent;
            parameters[6].Value = model.GudImage;
            parameters[7].Value = model.NumID;
            parameters[8].Value = model.IsDelete;

            DbHelperSQL.RunProcedure("Proc_Tb_Information_ConsumerGuid_Update", parameters, out rowsAffected);
        }
        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public MobileSoft.Model.Information.Tb_Information_ConsumerGuid GetModel(long GuideId)
        {
            SqlParameter[] parameters =
            {
                new SqlParameter("@GuideId", SqlDbType.BigInt)
            };
            parameters[0].Value = GuideId;

            MobileSoft.Model.Information.Tb_Information_ConsumerGuid model = new MobileSoft.Model.Information.Tb_Information_ConsumerGuid();
            DataSet ds = DbHelperSQL.RunProcedure("Proc_Tb_Information_ConsumerGuid_GetModel", parameters, "ds");

            if (ds.Tables[0].Rows.Count > 0)
            {
                if (ds.Tables[0].Rows[0]["GuideId"].ToString() != "")
                {
                    model.GuideId = long.Parse(ds.Tables[0].Rows[0]["GuideId"].ToString());
                }
                if (ds.Tables[0].Rows[0]["BussId"].ToString() != "")
                {
                    model.BussId = long.Parse(ds.Tables[0].Rows[0]["BussId"].ToString());
                }
                model.Title        = ds.Tables[0].Rows[0]["Title"].ToString();
                model.GudPublisher = ds.Tables[0].Rows[0]["GudPublisher"].ToString();
                if (ds.Tables[0].Rows[0]["PubulishDate"].ToString() != "")
                {
                    model.PubulishDate = DateTime.Parse(ds.Tables[0].Rows[0]["PubulishDate"].ToString());
                }
                model.GudContent = ds.Tables[0].Rows[0]["GudContent"].ToString();
                model.GudImage   = ds.Tables[0].Rows[0]["GudImage"].ToString();
                if (ds.Tables[0].Rows[0]["NumID"].ToString() != "")
                {
                    model.NumID = long.Parse(ds.Tables[0].Rows[0]["NumID"].ToString());
                }
                if (ds.Tables[0].Rows[0]["IsDelete"].ToString() != "")
                {
                    model.IsDelete = int.Parse(ds.Tables[0].Rows[0]["IsDelete"].ToString());
                }
                return(model);
            }
            else
            {
                return(null);
            }
        }