Oct 2, 2015 at 2:15 PM
Can you please show me how to create procedure with razor template output parameter...?
Oct 8, 2015 at 4:07 AM
Edited Oct 8, 2015 at 4:13 AM
If the whole razor template text is stored in your database, your stored procedure should return not only result sets but also a varchar/nvarchar output parameter which contains the corresponding razor template text, then in client's request specify RazorTemplate=thatOutputParameterName either in url querystring or in JSON request body, so that DbWebApi will use your query result sets' data to apply to the razor template.

If you don't want to store razor template text in database, you can also send the whole razor template text from client directly - in {RazorTemplate="Content text with C# code of the razor template"} request JSON body.
Oct 8, 2015 at 6:26 AM
Tnx, will try it.