コード例 #1
0
 /// <summary>
 /// Create a new Address object.
 /// </summary>
 /// <param name="addressID">Initial value of the AddressID property.</param>
 /// <param name="entityID">Initial value of the EntityID property.</param>
 /// <param name="addressTypeID">Initial value of the AddressTypeID property.</param>
 /// <param name="address1">Initial value of the Address1 property.</param>
 /// <param name="city">Initial value of the City property.</param>
 /// <param name="country">Initial value of the Country property.</param>
 /// <param name="listed">Initial value of the Listed property.</param>
 /// <param name="isPreferred">Initial value of the IsPreferred property.</param>
 /// <param name="createdDate">Initial value of the CreatedDate property.</param>
 /// <param name="createdBy">Initial value of the CreatedBy property.</param>
 public static Address CreateAddress(global::System.Int32 addressID, global::System.Int32 entityID, global::System.Int32 addressTypeID, global::System.String address1, global::System.String city, global::System.Int32 country, global::System.Boolean listed, global::System.Boolean isPreferred, global::System.DateTime createdDate, global::System.Int32 createdBy)
 {
     Address address = new Address();
     address.AddressID = addressID;
     address.EntityID = entityID;
     address.AddressTypeID = addressTypeID;
     address.Address1 = address1;
     address.City = city;
     address.Country = country;
     address.Listed = listed;
     address.IsPreferred = isPreferred;
     address.CreatedDate = createdDate;
     address.CreatedBy = createdBy;
     return address;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Addresses EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToAddresses(Address address)
 {
     base.AddObject("Addresses", address);
 }