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 July 31st, 2009, 11:45 AM
Registered User
 
Join Date: Jul 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Need clarification for Errata (pg44) Chapter 2

The Errata for page 44 states this:

Error in Code
The Select() and Select(int id) methods should call the HRPaidTimeOffDataContext that takes a connection string:

using (HRPaidTimeOffDataContext db = new
HRPaidTimeOffDataContext(DBHelper.GetHRPaidTimeOff ConnectionString()))

I am unsure as to where DBHelper.GetHRPaidTimeOffConnectionString() in the 'using' statement has come from? In the context of Chapter 2, I do not recall DBHelper object being mentioned let alone a method called GetHRPaidTimeOffConnectionString().

What's going on here, or am I missing something blatantly obvious because at this point, the errata seems makes things somewhat confusing.
 
Old August 6th, 2009, 07:04 PM
Registered User
 
Join Date: Aug 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 2: Pg 44

Code:
Yes, I agree with you, majikmerlin.

With respect to the Select() and Select(int id) methods in ENTUserAccountData.cs, I get the following errors:

Cannot implicitly convert type 'System.Collections.GenericList<V2.PaidTimeOffDAL.ENTUserAccountSelectAllResult>' to 'System.Collections.Generic.List<V2.PaidTimeOffDAL.ENTUserAccount>'

Cannot implicitly convert type 'V2.PaidTimeOffDAL.ENTUserAccountSelectByIdResult' to 'V2.PaidTimeOffDAL.ENTUserAccount>'

I am struck here. Clarification for this errata provided is required ASAP.
 
Old December 31st, 2009, 06:32 AM
Registered User
 
Join Date: Dec 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Solution for errr on page 44

Yes, I agree with you,
I also got the same problem. Did you manage to get around this problem.
Please advise asap.
Thank you in advance
regards
zia UL Hassan
 
Old January 2nd, 2010, 02:11 AM
Registered User
 
Join Date: Nov 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Drop the SPROC on the ENTUserAccount Table

Hey Guys , the problem is with the return type of the Auto generated code of the OR/M designer . Try to solve the error by droping the two stored procedures right on the ENTUserAccount table not on the method pane of the .Net OR/M designer and let .Net generate the right method with the appropriate return type





Similar Threads
Thread Thread Starter Forum Replies Last Post
Errata Chapter 17 sahyouni ASP.NET 2.0 Professional 1 July 9th, 2009 06:07 AM
Chapter 5 Errata rogerj BOOK: Professional ADO.NET 3.5 with LINQ and the Entity Framework ISBN: 978-0-470-22988-0 0 February 21st, 2009 04:53 PM
Errata - Chapter 9, Page 322, C# RobC BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 4 November 23rd, 2007 08:28 PM
Chapter 9 Question - errata? feck BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 0 January 27th, 2007 04:10 PM
Errata - Chapter 9, Page 337, C# RobC BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 2 August 30th, 2006 08:17 AM





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