예제 #1
0
 public void UpdatePackage(Package package)
 {
     _package.UpatePackage(package);
 }
예제 #2
0
 public void AddPackage(Package package)
 {
     _package.AddPackage(package);
 }
예제 #3
0
 public void DeletePackage(Package package)
 {
     _package.DeletePackage(package);
 }
예제 #4
0
 public void UpatePackage(Package package)
 {
     TAEntities.Packages.ApplyCurrentValues(package);
     Save();
 }
예제 #5
0
 public void DeletePackage(Package package)
 {
     TAEntities.Packages.DeleteObject(package);
     Save();
 }
예제 #6
0
 public void AddPackage(Package package)
 {
     TAEntities.Packages.AddObject(package);
     Save();
 }
 /// <summary>
 /// Create a new Package object.
 /// </summary>
 /// <param name="code">Initial value of the Code property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="duration">Initial value of the Duration property.</param>
 /// <param name="capacity">Initial value of the Capacity property.</param>
 /// <param name="hotelId">Initial value of the HotelId property.</param>
 /// <param name="flightId">Initial value of the FlightId property.</param>
 /// <param name="from">Initial value of the From property.</param>
 /// <param name="to">Initial value of the To property.</param>
 public static Package CreatePackage(global::System.Int32 code, global::System.String name, global::System.Int32 duration, global::System.Int32 capacity, global::System.String hotelId, global::System.String flightId, global::System.String from, global::System.String to)
 {
     Package package = new Package();
     package.Code = code;
     package.Name = name;
     package.Duration = duration;
     package.Capacity = capacity;
     package.HotelId = hotelId;
     package.FlightId = flightId;
     package.From = from;
     package.To = to;
     return package;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Packages EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPackages(Package package)
 {
     base.AddObject("Packages", package);
 }