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