Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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.
  #2 (permalink)  
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.
  #3 (permalink)  
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
  #4 (permalink)  
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
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 06:01 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.