/// <summary> /// Create a new Account object. /// </summary> /// <param name="accountId">Initial value of the AccountId property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="emailAddress">Initial value of the EmailAddress property.</param> /// <param name="currentVersion">Initial value of the CurrentVersion property.</param> public static Account CreateAccount(global::System.Int32 accountId, global::System.String name, global::System.String emailAddress, global::System.Byte[] currentVersion) { Account account = new Account(); account.AccountId = accountId; account.Name = name; account.EmailAddress = emailAddress; account.CurrentVersion = currentVersion; 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); }