/// <summary>
 /// Deprecated Method for adding a new object to the Package EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPackage(Package package)
 {
     base.AddObject("Package", package);
 }
Exemplo n.º 2
0
 public void CreatePackage(Package source)
 {
     context.Package.AddObject(source);
 }
 /// <summary>
 /// Create a new Package object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="buildID">Initial value of the BuildID property.</param>
 /// <param name="status">Initial value of the Status property.</param>
 /// <param name="packageVersion">Initial value of the PackageVersion property.</param>
 /// <param name="packagePath">Initial value of the PackagePath property.</param>
 /// <param name="versionControlID">Initial value of the VersionControlID property.</param>
 /// <param name="createdDate">Initial value of the CreatedDate property.</param>
 public static Package CreatePackage(global::System.Int32 id, global::System.Int32 buildID, global::System.Int32 status, global::System.String packageVersion, global::System.String packagePath, global::System.Int32 versionControlID, global::System.DateTime createdDate)
 {
     Package package = new Package();
     package.ID = id;
     package.BuildID = buildID;
     package.Status = status;
     package.PackageVersion = packageVersion;
     package.PackagePath = packagePath;
     package.VersionControlID = versionControlID;
     package.CreatedDate = createdDate;
     return package;
 }