You need to drop Stored Procedures that are not entity objects into the method pane not onto the table object.
When doing this an object with the same name as the sproc + "Result" will be created.
Don't take blame, this wasn't mentioned to do this in the book and could be confusing.
The rule of thumb to follow is, procedures that are delete, insert, update, or select that does not return the entity object itself (such as count), drop it into the ORM Method Pane. Otherwise you'll get the error you're getting because the sproc's result doesn't match the table.
FYI: NOT all custom sproc's. Some return an entity, but are custom because it passes a different parameter... eg. SelectByWorkflowId(int workflowId)
Ronnie
|