예제 #1
0
 /// <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);
 }
예제 #2
0
 /// <summary>
 /// Create a new Package object.
 /// </summary>
 /// <param name="packageID">Initial value of the PackageID property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="description">Initial value of the Description property.</param>
 /// <param name="type">Initial value of the Type property.</param>
 /// <param name="price">Initial value of the Price property.</param>
 /// <param name="images">Initial value of the Images property.</param>
 /// <param name="status">Initial value of the Status property.</param>
 public static Package CreatePackage(global::System.Int32 packageID, global::System.String name, global::System.String description, global::System.Int32 type, global::System.Int32 price, global::System.String images, global::System.Int32 status)
 {
     Package package = new Package();
     package.PackageID = packageID;
     package.Name = name;
     package.Description = description;
     package.Type = type;
     package.Price = price;
     package.Images = images;
     package.Status = status;
     return package;
 }