コード例 #1
0
 /// <summary>
 /// Create a new CustomerAccount object.
 /// </summary>
 /// <param name="userID">Initial value of the UserID property.</param>
 /// <param name="password">Initial value of the Password property.</param>
 /// <param name="minutes">Initial value of the Minutes property.</param>
 /// <param name="status">Initial value of the Status property.</param>
 public static CustomerAccount CreateCustomerAccount(global::System.String userID, global::System.String password, global::System.Int32 minutes, global::System.Boolean status)
 {
     CustomerAccount customerAccount = new CustomerAccount();
     customerAccount.UserID = userID;
     customerAccount.Password = password;
     customerAccount.Minutes = minutes;
     customerAccount.Status = status;
     return customerAccount;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the CustomerAccounts EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCustomerAccounts(CustomerAccount customerAccount)
 {
     base.AddObject("CustomerAccounts", customerAccount);
 }