public void UpatePassenger(Passenger passenger)
 {
     TAEntities.Passengers.ApplyCurrentValues(passenger);
     Save();
 }
 public void AddPassenger(Passenger passenger)
 {
     TAEntities.Passengers.AddObject(passenger);
     Save();
 }
 public void DeletePassenger(Passenger passenger)
 {
     TAEntities.Passengers.DeleteObject(passenger);
     Save();
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Passengers EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPassengers(Passenger passenger)
 {
     base.AddObject("Passengers", passenger);
 }
 /// <summary>
 /// Create a new Passenger object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="passport">Initial value of the Passport property.</param>
 /// <param name="booking_BookingCode">Initial value of the Booking_BookingCode property.</param>
 public static Passenger CreatePassenger(global::System.Int32 id, global::System.String name, global::System.String passport, global::System.Int32 booking_BookingCode)
 {
     Passenger passenger = new Passenger();
     passenger.Id = id;
     passenger.Name = name;
     passenger.Passport = passport;
     passenger.Booking_BookingCode = booking_BookingCode;
     return passenger;
 }
 public void DeletePassenger(Passenger passenger)
 {
     _passenger.DeletePassenger(passenger);
 }
 public void UpdatePassenger(Passenger passenger)
 {
     _passenger.UpatePassenger(passenger);
 }
 public void AddPassenger(Passenger passenger)
 {
     _passenger.AddPassenger(passenger);
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Passengers EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPassengers(Passenger passenger)
 {
     base.AddObject("Passengers", passenger);
 }
Exemple #10
0
 public void DeletePassenger(Passenger passenger)
 {
     TAEntities.Passengers.DeleteObject(passenger);
     Save();
 }
Exemple #11
0
 public void UpatePassenger(Passenger passenger)
 {
     TAEntities.Passengers.ApplyCurrentValues(passenger);
     Save();
 }
Exemple #12
0
 public void AddPassenger(Passenger passenger)
 {
     TAEntities.Passengers.AddObject(passenger);
     Save();
 }