コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the CustomerAddresses EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCustomerAddresses(CustomerAddress customerAddress)
 {
     base.AddObject("CustomerAddresses", customerAddress);
 }
コード例 #2
0
 /// <summary>
 /// Create a new CustomerAddress object.
 /// </summary>
 /// <param name="customerID">Initial value of the CustomerID property.</param>
 /// <param name="addressID">Initial value of the AddressID property.</param>
 /// <param name="addressType">Initial value of the AddressType property.</param>
 /// <param name="rowguid">Initial value of the rowguid property.</param>
 /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param>
 public static CustomerAddress CreateCustomerAddress(global::System.Int32 customerID, global::System.Int32 addressID, global::System.String addressType, global::System.Guid rowguid, global::System.DateTime modifiedDate)
 {
     CustomerAddress customerAddress = new CustomerAddress();
     customerAddress.CustomerID = customerID;
     customerAddress.AddressID = addressID;
     customerAddress.AddressType = addressType;
     customerAddress.rowguid = rowguid;
     customerAddress.ModifiedDate = modifiedDate;
     return customerAddress;
 }