/// <summary>
        /// 得到一个对象实体
        /// </summary>
        public MobileSoft.Model.Resources.Tb_Resources_ReleaseVenues GetModel(long ReleaseVenuesID)
        {
            SqlParameter[] parameters =
            {
                new SqlParameter("@ReleaseVenuesID", SqlDbType.BigInt)
            };
            parameters[0].Value = ReleaseVenuesID;

            MobileSoft.Model.Resources.Tb_Resources_ReleaseVenues model = new MobileSoft.Model.Resources.Tb_Resources_ReleaseVenues();
            DataSet ds = DbHelperSQL.RunProcedure("Proc_Tb_Resources_ReleaseVenues_GetModel", parameters, "ds");

            if (ds.Tables[0].Rows.Count > 0)
            {
                if (ds.Tables[0].Rows[0]["ReleaseVenuesID"].ToString() != "")
                {
                    model.ReleaseVenuesID = long.Parse(ds.Tables[0].Rows[0]["ReleaseVenuesID"].ToString());
                }
                if (ds.Tables[0].Rows[0]["ReleaseID"].ToString() != "")
                {
                    model.ReleaseID = long.Parse(ds.Tables[0].Rows[0]["ReleaseID"].ToString());
                }
                model.ReleaseVenuesContent  = ds.Tables[0].Rows[0]["ReleaseVenuesContent"].ToString();
                model.ReleaseVenuesNeedKnow = ds.Tables[0].Rows[0]["ReleaseVenuesNeedKnow"].ToString();
                return(model);
            }
            else
            {
                return(null);
            }
        }
        /// <summary>
        ///  更新一条数据
        /// </summary>
        public void Update(MobileSoft.Model.Resources.Tb_Resources_ReleaseVenues model)
        {
            int rowsAffected;

            SqlParameter[] parameters =
            {
                new SqlParameter("@ReleaseVenuesID",       SqlDbType.BigInt, 8),
                new SqlParameter("@ReleaseID",             SqlDbType.BigInt, 8),
                new SqlParameter("@ReleaseVenuesContent",  SqlDbType.NText),
                new SqlParameter("@ReleaseVenuesNeedKnow", SqlDbType.NText)
            };
            parameters[0].Value = model.ReleaseVenuesID;
            parameters[1].Value = model.ReleaseID;
            parameters[2].Value = model.ReleaseVenuesContent;
            parameters[3].Value = model.ReleaseVenuesNeedKnow;

            DbHelperSQL.RunProcedure("Proc_Tb_Resources_ReleaseVenues_Update", parameters, out rowsAffected);
        }
        /// <summary>
        ///  增加一条数据
        /// </summary>
        public long Add(MobileSoft.Model.Resources.Tb_Resources_ReleaseVenues model)
        {
            int rowsAffected;

            SqlParameter[] parameters =
            {
                new SqlParameter("@ReleaseVenuesID",       SqlDbType.BigInt, 8),
                new SqlParameter("@ReleaseID",             SqlDbType.BigInt, 8),
                new SqlParameter("@ReleaseVenuesContent",  SqlDbType.NText),
                new SqlParameter("@ReleaseVenuesNeedKnow", SqlDbType.NText)
            };
            parameters[0].Direction = ParameterDirection.Output;
            parameters[1].Value     = model.ReleaseID;
            parameters[2].Value     = model.ReleaseVenuesContent;
            parameters[3].Value     = model.ReleaseVenuesNeedKnow;

            DbHelperSQL.RunProcedure("Proc_Tb_Resources_ReleaseVenues_ADD", parameters, out rowsAffected);
            return((long)parameters[0].Value);
        }