コード例 #1
0
 public int Insert(BuybackVehicle poco)
 {
     using (var connection = new SqlConnection(ConfigurationManager.ConnectionStrings["ABS-SQL"].ConnectionString))
     {
         return (int)connection.Insert(poco);
     }
 }
コード例 #2
0
 public int Process(BuybackVehicle BuybackVehicle)
 {
     this.vehicle = BuybackVehicle;
     using (var transaction = new TransactionScope())
     {
         using (connection = new SqlConnection(ConfigurationManager.ConnectionStrings["ABS-SQL"].ConnectionString))
         {
             doProcess();
         }
         transaction.Complete();
     }
     return buybackId;
 }
コード例 #3
0
 public int ProcessInsert(BuybackVehicle vehicle)
 {
     return absBuybackInserter.Process(vehicle);
 }
コード例 #4
0
 public int Delete(BuybackVehicle poco)
 {
     throw new NotImplementedException();
 }
コード例 #5
0
 public bool Update(BuybackVehicle poco)
 {
     throw new NotImplementedException();
 }