コード例 #1
0
 public object SaveTrServicedetailsInfo(object param)
 {
     Database db = DatabaseFactory.CreateDatabase();
     object retObj = null;
     using (DbConnection connection = db.CreateConnection())
     {
         connection.Open();
         DbTransaction transaction = connection.BeginTransaction();
         try
         {
             TrServicedetailsEntity trServicedetailsEntity = (TrServicedetailsEntity)param;
             TrServicedetailsDAL trServicedetailsDAL = new TrServicedetailsDAL();
             retObj = (object)trServicedetailsDAL.SaveTrServicedetailsInfo(trServicedetailsEntity, db, transaction);
             transaction.Commit();
         }
         catch
         {
             transaction.Rollback();
             throw;
         }
         finally
         {
             connection.Close();
         }
     }
     return retObj;
 }
コード例 #2
0
 public object GetSingleTrServicedetailsRecordById(object param)
 {
     object retObj = null;
     TrServicedetailsDAL trServicedetailsDAL = new TrServicedetailsDAL();
     retObj = (object)trServicedetailsDAL.GetSingleTrServicedetailsRecordById(param);
     return retObj;
 }