Wrox Programmer Forums
|
BOOK: Professional Enterprise .NET
This is the forum to discuss the Wrox book Professional Enterprise .NET by Jon Arking, Scott Millett; ISBN: 978-0-470-44761-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Enterprise .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 16th, 2009, 01:29 PM
Registered User
 
Join Date: Dec 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Remove - UpdateMe - Add

On page 409 where the Borrower is posted back during an Edit. I just wanted to know why it was necessary to Remove the existingBorrower before calling UpdateMe and then Adding it back into the LoanApplication.

app.Borrowers.Remove(existingBorrower);
existingBorrower.UpdateMe(b);
app.Borrowers.Add(existingBorrower);
_repository.Save(app);

Thanks!





Similar Threads
Thread Thread Starter Forum Replies Last Post
add & Remove frm Listbox hotshot_21 ASP.NET 1.0 and 1.1 Basics 1 June 21st, 2007 05:26 PM
Dual dropdown lists, add and remove Endelee Classic ASP Basics 1 May 4th, 2007 03:31 AM
how 2 add or remove .js dynamically in my pages nerssi Javascript 2 September 21st, 2006 09:14 AM
asp boxlist add/remove lip13 Classic ASP Basics 1 December 10th, 2004 06:47 PM
Add and Remove Nodes in XML document. tutul128 XML 3 March 1st, 2004 10:17 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.