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