コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Phones EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPhones(Phone phone)
 {
     base.AddObject("Phones", phone);
 }
コード例 #2
0
 /// <summary>
 /// Create a new Phone object.
 /// </summary>
 /// <param name="phoneID">Initial value of the phoneID property.</param>
 /// <param name="userID">Initial value of the userID property.</param>
 /// <param name="phoneTypeID">Initial value of the phoneTypeID property.</param>
 /// <param name="phoneNo">Initial value of the phoneNo property.</param>
 public static Phone CreatePhone(global::System.Int32 phoneID, global::System.Int32 userID, global::System.Int32 phoneTypeID, global::System.String phoneNo)
 {
     Phone phone = new Phone();
     phone.phoneID = phoneID;
     phone.userID = userID;
     phone.phoneTypeID = phoneTypeID;
     phone.phoneNo = phoneNo;
     return phone;
 }