p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio (http://p2p.wrox.com/forumdisplay.php?f=477)
-   -   Need clarification for Errata (pg44) Chapter 2 (http://p2p.wrox.com/showthread.php?t=75498)

majikmerlin July 31st, 2009 11:45 AM

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.

swati26 August 6th, 2009 07:04 PM

Chapter 2: Pg 44

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.

Ziaulhassan December 31st, 2009 06:32 AM

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
zia UL Hassan

theodrows January 2nd, 2010 02:11 AM

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

All times are GMT -4. The time now is 05:19 PM.

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