public void UpdatePackage(Package package) { _package.UpatePackage(package); }
public void AddPackage(Package package) { _package.AddPackage(package); }
public void DeletePackage(Package package) { _package.DeletePackage(package); }
public void UpatePackage(Package package) { TAEntities.Packages.ApplyCurrentValues(package); Save(); }
public void DeletePackage(Package package) { TAEntities.Packages.DeleteObject(package); Save(); }
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<T> property instead. /// </summary> public void AddToPackages(Package package) { base.AddObject("Packages", package); }