/// <summary> /// Create a new Account object. /// </summary> /// <param name="accountID">Initial value of the AccountID property.</param> /// <param name="description">Initial value of the Description property.</param> /// <param name="countryCodePrefix">Initial value of the CountryCodePrefix property.</param> /// <param name="username">Initial value of the Username property.</param> /// <param name="password">Initial value of the Password property.</param> /// <param name="isDefault">Initial value of the IsDefault property.</param> public static Account CreateAccount(global::System.Int32 accountID, global::System.String description, global::System.String countryCodePrefix, global::System.String username, global::System.String password, global::System.Boolean isDefault) { Account account = new Account(); account.AccountID = accountID; account.Description = description; account.CountryCodePrefix = countryCodePrefix; account.Username = username; account.Password = password; account.IsDefault = isDefault; return account; }
/// <summary> /// Deprecated Method for adding a new object to the Accounts EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToAccounts(Account account) { base.AddObject("Accounts", account); }