View Single Post
  #1 (permalink)  
Old July 8th, 2010, 05:55 PM
Pegasus40218 Pegasus40218 is offline
Authorized User
Points: 71, Level: 1
Points: 71, Level: 1 Points: 71, Level: 1 Points: 71, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Aug 2009
Posts: 17
Thanks: 0
Thanked 1 Time in 1 Post
Default 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?

Last edited by Pegasus40218; July 9th, 2010 at 09:27 AM.. Reason: corrected spelling in title.