Esempio n. 1
0
 /// <summary>
 /// Create a new Supplier object.
 /// </summary>
 /// <param name="supplierID">Initial value of the SupplierID property.</param>
 /// <param name="companyName">Initial value of the CompanyName property.</param>
 /// <param name="rowVersion">Initial value of the RowVersion property.</param>
 /// <param name="location">Initial value of the Location property.</param>
 public static Supplier CreateSupplier(global::System.Int32 supplierID, global::System.String companyName, global::System.Int32 rowVersion, Location location)
 {
     Supplier supplier = new Supplier();
     supplier.SupplierID = supplierID;
     supplier.CompanyName = companyName;
     supplier.RowVersion = rowVersion;
     supplier.Location = StructuralObject.VerifyComplexObjectIsNotNull(location, "Location");
     return supplier;
 }
Esempio n. 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Suppliers EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSuppliers(Supplier supplier)
 {
     base.AddObject("Suppliers", supplier);
 }
 /// <summary>
 /// Create a new Supplier object.
 /// </summary>
 /// <param name="supplierID">Initial value of the SupplierID property.</param>
 /// <param name="companyName">Initial value of the CompanyName property.</param>
 /// <param name="rowVersion">Initial value of the RowVersion property.</param>
 public static Supplier CreateSupplier(global::System.Int32 supplierID, global::System.String companyName, global::System.Int32 rowVersion)
 {
     Supplier supplier = new Supplier();
     supplier.SupplierID = supplierID;
     supplier.CompanyName = companyName;
     supplier.RowVersion = rowVersion;
     return supplier;
 }