Beispiel #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"]);
        }
Beispiel #2
0
 private void detach_BBSAnswer(BBSAnswer entity)
 {
     this.SendPropertyChanging();
     entity.BBSNote = null;
 }
Beispiel #3
0
 private void attach_BBSAnswer(BBSAnswer entity)
 {
     this.SendPropertyChanging();
     entity.BBSNote = this;
 }
Beispiel #4
0
 partial void DeleteBBSAnswer(BBSAnswer instance);
Beispiel #5
0
 partial void UpdateBBSAnswer(BBSAnswer instance);
Beispiel #6
0
 partial void InsertBBSAnswer(BBSAnswer instance);