protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         int id = Convert.ToInt32(Request.QueryString["id"].ToString());
         bulletin = new ArticleWithAthmt();
         bulletin = PubHelper.GetBulltin(id);
     }
     catch
     {
     }
 }
 /// <summary>
 /// 创建新的 ArticleWithAthmt 对象。
 /// </summary>
 /// <param name="bid">Bid 属性的初始值。</param>
 /// <param name="title">Title 属性的初始值。</param>
 /// <param name="postTime">PostTime 属性的初始值。</param>
 public static ArticleWithAthmt CreateArticleWithAthmt(global::System.Int64 bid, global::System.String title, global::System.DateTime postTime)
 {
     ArticleWithAthmt articleWithAthmt = new ArticleWithAthmt();
     articleWithAthmt.Bid = bid;
     articleWithAthmt.Title = title;
     articleWithAthmt.PostTime = postTime;
     return articleWithAthmt;
 }
 /// <summary>
 /// 用于向 ArticleWithAthmts EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToArticleWithAthmts(ArticleWithAthmt articleWithAthmt)
 {
     base.AddObject("ArticleWithAthmts", articleWithAthmt);
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            int id = Convert.ToInt32(Request.QueryString["id"]);

            press = PubHelper.GetBulltin(id);
        }