示例#1
0
 private void populate()
 {
     _table1 = TblUpd.GetElement(_nr);
     txtNr.Text = _table1.nr.ToString();
     txtName.Text = _table1.name;
     txtId.Text = _table1.id.ToString();
 }
示例#2
0
        public static void TableMod(Table1 t)
        {
            using (DataClasses1DataContext dc1 = new DataClasses1DataContext ())
            {
                var r = (from tt in dc1.Table1s
                         where tt.nr == t.nr
                         select tt).SingleOrDefault();

                r.name = t.name;
                dc1.SubmitChanges();

            }
        }
		private void detach_Table1s(Table1 entity)
		{
			this.SendPropertyChanging();
			entity.Table2 = null;
		}
		private void attach_Table1s(Table1 entity)
		{
			this.SendPropertyChanging();
			entity.Table2 = this;
		}
 partial void DeleteTable1(Table1 instance);
 partial void UpdateTable1(Table1 instance);
 partial void InsertTable1(Table1 instance);