Ejemplo n.º 1
0
 /// <summary>
 /// Create a new Vendor object.
 /// </summary>
 /// <param name="vendorId">Initial value of the VendorId property.</param>
 /// <param name="vendorName">Initial value of the VendorName property.</param>
 /// <param name="shortName">Initial value of the ShortName property.</param>
 /// <param name="webSite">Initial value of the WebSite property.</param>
 public static Vendor CreateVendor(global::System.Int32 vendorId, global::System.String vendorName, global::System.String shortName, global::System.String webSite)
 {
     Vendor vendor = new Vendor();
     vendor.VendorId = vendorId;
     vendor.VendorName = vendorName;
     vendor.ShortName = shortName;
     vendor.WebSite = webSite;
     return vendor;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Vendors EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToVendors(Vendor vendor)
 {
     base.AddObject("Vendors", vendor);
 }