/// <summary> /// /// </summary> /// <param name="p"></param> /// <returns></returns> private ListViewItem CreateLVI(tblPerson p) { ListViewItem lvi = new ListViewItem(); lvi.Text = p.PersonName; lvi.Tag = p; return lvi; }
/// <summary> /// /// </summary> private void Add(DB db) { //DB db = DBFactory.GetDB(); tblPerson p = new tblPerson(); p.PersonName = this.txtPersonName.Text; p.tblTM = GetSelectedTm(db); db.tblPerson.InsertOnSubmit(p); db.SubmitChanges(); }
partial void DeletetblPerson(tblPerson instance);
partial void UpdatetblPerson(tblPerson instance);
partial void InserttblPerson(tblPerson instance);
private void detach_tblPerson(tblPerson entity) { this.SendPropertyChanging(); entity.tblGroup = null; }
private void attach_tblPerson(tblPerson entity) { this.SendPropertyChanging(); entity.tblGroup = this; }