Пример #1
0
        void Add()
        {
            DB db = DBFactory.GetDB();
            tblTM tm = new tblTM();
            tm.TmSN = this.txtTM.Text.Trim();
            tm.TmRemark = this.txtRemark.Text.Trim();

            db.tblTM.InsertOnSubmit(tm);
            db.SubmitChanges();
        }
Пример #2
0
 private object GetPersonName(tblTM item)
 {
     if (item.tblPerson.Count > 0)
     {
         return item.tblPerson[0].PersonName;
     }
     return string.Empty;
 }
Пример #3
0
 partial void DeletetblTM(tblTM instance);
Пример #4
0
 partial void UpdatetblTM(tblTM instance);
Пример #5
0
 partial void InserttblTM(tblTM instance);
Пример #6
0
 private ListViewItem Create(tblTM tm)
 {
     ListViewItem l = new ListViewItem(tm.TmSN);
     l.Tag = tm;
     return l;
 }