コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the CustomerStatuses EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCustomerStatuses(CustomerStatus customerStatus)
 {
     base.AddObject("CustomerStatuses", customerStatus);
 }
コード例 #2
0
 /// <summary>
 /// Create a new CustomerStatus object.
 /// </summary>
 /// <param name="customerStatusID">Initial value of the CustomerStatusID property.</param>
 /// <param name="displayName">Initial value of the DisplayName property.</param>
 /// <param name="displayPriority">Initial value of the DisplayPriority property.</param>
 public static CustomerStatus CreateCustomerStatus(global::System.Int32 customerStatusID, global::System.String displayName, global::System.Int32 displayPriority)
 {
     CustomerStatus customerStatus = new CustomerStatus();
     customerStatus.CustomerStatusID = customerStatusID;
     customerStatus.DisplayName = displayName;
     customerStatus.DisplayPriority = displayPriority;
     return customerStatus;
 }