Exemple #1
0
        protected void btnSave_Click(object sender, EventArgs e)
        {
            BBSDataContext lq = new BBSDataContext();
            BBSAnswer      ba = new BBSAnswer();

            ba.uID       = Convert.ToInt32(Session["uID"]);
            ba.bnID      = Convert.ToInt32(Request["id"]);
            ba.baContent = txtbaContent.Text;
            ba.baAddTime = System.DateTime.Now;
            lq.BBSAnswer.InsertOnSubmit(ba);
            lq.SubmitChanges();
            Response.Redirect("BBSAnswerList.aspx?id=" + Request["id"]);
        }
 private void detach_BBSAnswer(BBSAnswer entity)
 {
     this.SendPropertyChanging();
     entity.BBSNote = null;
 }
 private void attach_BBSAnswer(BBSAnswer entity)
 {
     this.SendPropertyChanging();
     entity.BBSNote = this;
 }
 partial void DeleteBBSAnswer(BBSAnswer instance);
 partial void UpdateBBSAnswer(BBSAnswer instance);
 partial void InsertBBSAnswer(BBSAnswer instance);