コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the OfficePhoneSet EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToOfficePhoneSet(OfficePhone officePhone)
 {
     base.AddObject("OfficePhoneSet", officePhone);
 }
コード例 #2
0
 /// <summary>
 /// Create a new OfficePhone object.
 /// </summary>
 /// <param name="number">Initial value of the Number property.</param>
 public static OfficePhone CreateOfficePhone(global::System.Int32 number)
 {
     OfficePhone officePhone = new OfficePhone();
     officePhone.Number = number;
     return officePhone;
 }