public static Accounts CreateAccount(long accountNumber, Guid userID, long brokerID) { var newAcc = new Accounts(); newAcc.systemUserID = userID; newAcc.accountNumber = accountNumber; newAcc.active = false; newAcc.brokerID = brokerID; EntitiesContainer.Accounts.AddObject(newAcc); EntitiesContainer.SaveChanges(); return newAcc; }
/// <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(Accounts accounts) { base.AddObject("Accounts", accounts); }
/// <summary> /// Create a new Accounts object. /// </summary> /// <param name="accountID">Initial value of the accountID property.</param> /// <param name="systemUserID">Initial value of the systemUserID property.</param> /// <param name="accountNumber">Initial value of the accountNumber property.</param> /// <param name="active">Initial value of the active property.</param> public static Accounts CreateAccounts(global::System.Int32 accountID, global::System.Guid systemUserID, global::System.Int64 accountNumber, global::System.Boolean active) { Accounts accounts = new Accounts(); accounts.accountID = accountID; accounts.systemUserID = systemUserID; accounts.accountNumber = accountNumber; accounts.active = active; return accounts; }