Jiri Moudry
unread,May 21, 2008, 7:14:23 AM5/21/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DbLinq
Hallo Friedrich,
If I understand your question correctly, you would like the stored
proc to return a business object instead of a DataReader.
The problem is that determining the result shape is complicated.
Microsoft Linq-to-Sql determines the shape by parsing the stored proc
body, but we don't have this functionality.
We could enhance VisualMetal to give you the option of invoking your
stored proc to determine the result shape.
In the meantime, you could try this workaround:
db.ExecuteQuery<Project>("CALL myproc( {0},{1} )", param1, param2 );