Пример #1
0
 public CPetcomPO()
 {
     _myTAM = new PETDataSetTableAdapters.TableAdapterManager();
     _myTAM.BackupDataSetBeforeUpdate = false;
     _myTAM.UpdateOrder = PETDataSetTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
     //加入Table Adapter
     _myTAM.TB_PET_PETCOMTableAdapter = new PETDataSetTableAdapters.TB_PET_PETCOMTableAdapter();
     _myTAM.TB_PET_PETCOMTableAdapter.Connection.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["connectionstring"].ConnectionString;
 }
Пример #2
0
 public PETContext()
 {
     PETDS  = new PETDataSet();
     _myTAM = new PETDataSetTableAdapters.TableAdapterManager();
     _myTAM.BackupDataSetBeforeUpdate = false;
     _myTAM.UpdateOrder = PETDataSetTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
     //加入Table Adapter
     _myTAM.TB_PET_TARGETTableAdapter    = new PETDataSetTableAdapters.TB_PET_TARGETTableAdapter();
     _myTAM.TB_PET_SUPERVISETableAdapter = new PETDataSetTableAdapters.TB_PET_SUPERVISETableAdapter();
 }