コード例 #1
0
 // gives next booking ref number. Useful if the database is on a server and the system is used on many machines. It ensures that no
 // bookings with duplicate booking ref numbers are created.
 public static int GetNextBookingRef()
 {
     if (DatabaseCalls.GetNextBookingRef() == -1)
     {
         return(1);
     }
     return(DatabaseCalls.GetNextBookingRef());
 }