Esempio n. 1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            BBSDataContext lq   = new BBSDataContext();
            BBSNote        note = new BBSNote();

            note.bnSubject = txtbnSubject.Text;
            note.bnContent = txtbnContent.Text;
            note.uID       = Convert.ToInt32(Session["uID"]);
            note.bnAddTime = System.DateTime.Now;
            lq.BBSNote.InsertOnSubmit(note);
            lq.SubmitChanges();
            Response.Redirect("BBSNoteList.aspx");
        }
Esempio n. 2
0
 private void detach_BBSNote(BBSNote entity)
 {
     this.SendPropertyChanging();
     entity.Users = null;
 }
Esempio n. 3
0
 private void attach_BBSNote(BBSNote entity)
 {
     this.SendPropertyChanging();
     entity.Users = this;
 }
Esempio n. 4
0
 partial void DeleteBBSNote(BBSNote instance);
Esempio n. 5
0
 partial void UpdateBBSNote(BBSNote instance);
Esempio n. 6
0
 partial void InsertBBSNote(BBSNote instance);