public override void AddAccount(Domain.Entities.Account account) { EF.Account efAccount = new EF.Account(); efAccount.AccountName = account.AccountName; context.Accounts.AddObject(efAccount); context.SaveChanges(); }
/// <summary> /// Create a new Account object. /// </summary> /// <param name="accountId">Initial value of the AccountId property.</param> /// <param name="accountName">Initial value of the AccountName property.</param> public static Account CreateAccount(global::System.Int64 accountId, global::System.String accountName) { Account account = new Account(); account.AccountId = accountId; account.AccountName = accountName; 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); }