public IAccount NewAccount() { Account account = new Account(); // Future settings: account.IsEnabled = true; account.Description = null; account.Currency = null; account.PeriodStartDay = 1; account.PeriodMonths = 1; account.Added = DateTime.Now; account.Modified = account.Added; db.Accounts.InsertOnSubmit( account ); return account; }
partial void DeleteAccount(Account instance);
partial void UpdateAccount(Account instance);
partial void InsertAccount(Account instance);