Wrox Programmer Forums
|
BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio
This is the forum to discuss the Wrox book ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solution by Vincent Varallo; ISBN: 9780470396865
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio 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 June 28th, 2009, 11:18 AM
ocn ocn is offline
Authorized User
 
Join Date: Jun 2009
Posts: 15
Thanks: 5
Thanked 0 Times in 0 Posts
Default Implementations of Load() and a specialized Select()

After reading Chapter 3 in the book, I don't quite understand how to implement the Load() method to load child records and a specialized Select method mentioned on the following pages.

- The last sentence on page 52, Vince mentions that we could add code to load child records in the Load as well.

- On page 67, in the last paragraph above Summary section, Vince points out that if we want to filter the records returned from database, we need to overload the Load method, then call a specialized Select method in DAL. Do I have create the new specialized Select method?

Could you please show me how to implement the two methods mentioned above? I truly appreciate for sharing your knowledge.
 
Old June 28th, 2009, 09:51 PM
Wrox Author
 
Join Date: Jan 2009
Posts: 73
Thanks: 0
Thanked 7 Times in 7 Posts
Default

Look on page 173 for a sample of what I mean. The ENTRoleEO class has two properties which represent collections. When the Load is called for the ENTRoleEO class is call the MapEntityToCustomProperites and that calls the Load for the two collection classes.
The Following User Says Thank You to varallov For This Useful Post:
ocn (June 30th, 2009)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Select row in GridView WITHOUT using Select button rao965 ASP.NET 2.0 Professional 1 February 15th, 2008 10:44 AM
Select from another select statement to a repeater simsen ASP.NET 2.0 Professional 0 May 2nd, 2007 04:34 PM
Fill select box and select recordset value markd Classic ASP Databases 1 February 20th, 2006 06:41 PM
select="node1", select="node2"... Baldo XSLT 7 March 12th, 2004 10:38 AM
select a value from ddl at page load KevinO ASP.NET 1.0 and 1.1 Basics 5 December 29th, 2003 09:00 PM





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