p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/)
-   BOOK: Professional ASP.NET 3.5 SP1 Edition: In C# and VB (http://p2p.wrox.com/book-professional-asp-net-3-5-sp1-edition-c-vb-497/)
-   -   Ch 9 p.469 O/R Design Surface behaior problem (http://p2p.wrox.com/book-professional-asp-net-3-5-sp1-edition-c-vb/80069-ch-9-p-469-o-r-design-surface-behaior-problem.html)

Pegasus40218 July 8th, 2010 06:55 PM

Ch 9 p.469 O/R Design Surface behavior problem
 
I'm attempting to follow the instructions for adding the GetGenre() stored procedure to the design surface (drop it on the Genres table on the design surface). When I do this, however, I get the following error: "One or more selected database objects return a schema that does not match the schema of the target data class. Nothing has been added to the designer.

I am able to drop the stored proc directly on the design surface (not on a table), and it gets added, but the function has a return type of integer instead of returning an instance of the Genre class.

Is there something that I'm doing wrong or overlooking?


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

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