Example #1
0
 /// <summary>
 /// Create a new Buyer object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="countryId">Initial value of the CountryId property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="city">Initial value of the City property.</param>
 /// <param name="zipCode">Initial value of the ZipCode property.</param>
 /// <param name="fax">Initial value of the Fax property.</param>
 /// <param name="email">Initial value of the Email property.</param>
 /// <param name="address">Initial value of the Address property.</param>
 /// <param name="telephoneNo">Initial value of the TelephoneNo property.</param>
 public static Buyer CreateBuyer(global::System.Int32 id, global::System.Int32 countryId, global::System.String name, global::System.String city, global::System.String zipCode, global::System.String fax, global::System.String email, global::System.String address, global::System.String telephoneNo)
 {
     Buyer buyer = new Buyer();
     buyer.Id = id;
     buyer.CountryId = countryId;
     buyer.Name = name;
     buyer.City = city;
     buyer.ZipCode = zipCode;
     buyer.Fax = fax;
     buyer.Email = email;
     buyer.Address = address;
     buyer.TelephoneNo = telephoneNo;
     return buyer;
 }
Example #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Buyers EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToBuyers(Buyer buyer)
 {
     base.AddObject("Buyers", buyer);
 }