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"); }
private void detach_BBSNote(BBSNote entity) { this.SendPropertyChanging(); entity.Users = null; }
private void attach_BBSNote(BBSNote entity) { this.SendPropertyChanging(); entity.Users = this; }
partial void DeleteBBSNote(BBSNote instance);
partial void UpdateBBSNote(BBSNote instance);
partial void InsertBBSNote(BBSNote instance);