Exemplo n.º 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Customers EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCustomers(Customer customer)
 {
     base.AddObject("Customers", customer);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Create a new Customer object.
 /// </summary>
 /// <param name="membershipID">Initial value of the MembershipID property.</param>
 /// <param name="introducerID">Initial value of the IntroducerID property.</param>
 /// <param name="referenceID">Initial value of the ReferenceID property.</param>
 /// <param name="customerName">Initial value of the CustomerName property.</param>
 /// <param name="gender">Initial value of the Gender property.</param>
 /// <param name="createdBy">Initial value of the CreatedBy property.</param>
 /// <param name="nationality">Initial value of the Nationality property.</param>
 /// <param name="country">Initial value of the Country property.</param>
 /// <param name="city">Initial value of the City property.</param>
 /// <param name="municipality">Initial value of the Municipality property.</param>
 /// <param name="district">Initial value of the District property.</param>
 /// <param name="street">Initial value of the Street property.</param>
 /// <param name="areaCode">Initial value of the AreaCode property.</param>
 /// <param name="homeNumber">Initial value of the HomeNumber property.</param>
 /// <param name="address">Initial value of the Address property.</param>
 /// <param name="customerTypeID">Initial value of the CustomerTypeID property.</param>
 public static Customer CreateCustomer(global::System.String membershipID, global::System.String introducerID, global::System.String referenceID, global::System.String customerName, global::System.String gender, global::System.Int32 createdBy, global::System.String nationality, global::System.String country, global::System.String city, global::System.String municipality, global::System.String district, global::System.String street, global::System.String areaCode, global::System.String homeNumber, global::System.String address, global::System.Int32 customerTypeID)
 {
     Customer customer = new Customer();
     customer.MembershipID = membershipID;
     customer.IntroducerID = introducerID;
     customer.ReferenceID = referenceID;
     customer.CustomerName = customerName;
     customer.Gender = gender;
     customer.CreatedBy = createdBy;
     customer.Nationality = nationality;
     customer.Country = country;
     customer.City = city;
     customer.Municipality = municipality;
     customer.District = district;
     customer.Street = street;
     customer.AreaCode = areaCode;
     customer.HomeNumber = homeNumber;
     customer.Address = address;
     customer.CustomerTypeID = customerTypeID;
     return customer;
 }