Example #1
0
 /// <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;
 }
Example #2
0
        /// <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();
        }
Example #3
0
 partial void DeletetblPerson(tblPerson instance);
Example #4
0
 partial void UpdatetblPerson(tblPerson instance);
Example #5
0
 partial void InserttblPerson(tblPerson instance);
Example #6
0
		private void detach_tblPerson(tblPerson entity)
		{
			this.SendPropertyChanging();
			entity.tblGroup = null;
		}
Example #7
0
		private void attach_tblPerson(tblPerson entity)
		{
			this.SendPropertyChanging();
			entity.tblGroup = this;
		}