コード例 #1
0
 /// <summary>
 /// Create a new PersonPhone object.
 /// </summary>
 /// <param name="businessEntityID">Initial value of the BusinessEntityID property.</param>
 /// <param name="phoneNumber">Initial value of the PhoneNumber property.</param>
 /// <param name="phoneNumberTypeID">Initial value of the PhoneNumberTypeID property.</param>
 /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param>
 public static PersonPhone CreatePersonPhone(global::System.Int32 businessEntityID, global::System.String phoneNumber, global::System.Int32 phoneNumberTypeID, global::System.DateTime modifiedDate)
 {
     PersonPhone personPhone = new PersonPhone();
     personPhone.BusinessEntityID = businessEntityID;
     personPhone.PhoneNumber = phoneNumber;
     personPhone.PhoneNumberTypeID = phoneNumberTypeID;
     personPhone.ModifiedDate = modifiedDate;
     return personPhone;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the PersonPhones EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPersonPhones(PersonPhone personPhone)
 {
     base.AddObject("PersonPhones", personPhone);
 }