c# Programming Glossary: acc1
Database does not get updated with Attach method http://stackoverflow.com/questions/11153915/database-does-not-get-updated-with-attach-method we need a refresh accountRepository.UpdateChangesByAttach acc1 accountRepository.RefreshEntity acc1 accountRepository.SubmitChanges.. acc1 accountRepository.RefreshEntity acc1 accountRepository.SubmitChanges Note DataContext.Refresh method.. Layer public void InsertAccounts RepositoryLayer.Account acc1 new RepositoryLayer.Account acc1.AccountNumber 4 acc1.AccountType..
Default Values (of C# variables) Issue in LINQ to SQL Update http://stackoverflow.com/questions/11186813/default-values-of-c-sharp-variables-issue-in-linq-to-sql-update CODE public void UpdateAccount RepositoryLayer.Account acc1 new RepositoryLayer.Account acc1.AccountNumber 4 acc1.AccountType.. RepositoryLayer.Account acc1 new RepositoryLayer.Account acc1.AccountNumber 4 acc1.AccountType Verify accountRepository.UpdateChangesByAttachAndRefresh.. acc1 new RepositoryLayer.Account acc1.AccountNumber 4 acc1.AccountType Verify accountRepository.UpdateChangesByAttachAndRefresh..
|