예제 #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="id">Initial value of the Id property.</param>
 /// <param name="packageName">Initial value of the PackageName property.</param>
 /// <param name="discontinued">Initial value of the Discontinued property.</param>
 /// <param name="rowVersion">Initial value of the RowVersion property.</param>
 public static Package CreatePackage(global::System.Int32 id, global::System.String packageName, global::System.Boolean discontinued, global::System.Byte[] rowVersion)
 {
     Package package = new Package();
     package.Id = id;
     package.PackageName = packageName;
     package.Discontinued = discontinued;
     package.RowVersion = rowVersion;
     return package;
 }