示例#1
0
 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
     {
     }
 }
示例#2
0
 /// <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;
 }
示例#3
0
 /// <summary>
 /// 用于向 ArticleWithAthmts EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToArticleWithAthmts(ArticleWithAthmt articleWithAthmt)
 {
     base.AddObject("ArticleWithAthmts", articleWithAthmt);
 }
示例#4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int id = Convert.ToInt32(Request.QueryString["id"]);

            press = PubHelper.GetBulltin(id);
        }