CodeSmith Community
Your Code. Your Way. Faster!

Paging for a views custom stored procedure

Latest post 06-02-2008 12:56 PM by SuperJeffe. 1 replies.
  • 05-28-2008 8:59 PM

    Paging for a views custom stored procedure

     Should it be possible to use CustomMethodRecordCountParamName with the output parameter from a views custom stored procedure?

     Looking in \Components\Views\ComponentViewDataAccess.cst it looks like the ability to use the custom stored procedures output parameters has been removed:

    //Call Custom Procedure from Repository
    //<%= returnType != "void" ? "result = " : ""  %><%= newCollection %>dataProvider.<%= GetClassName(SourceView, ClassNameFormat.Provider) %>.<%=methodName%>(transactionManager, start, pageLength <%=TransformStoredProcedureInputsToDataAccess(true, command.InputParameters) + TransformStoredProcedureOutputsToDataAccess(true, command.AllOutputParameters)%>)<%= newCollectionEnd %>;
    <%= returnType != "void" ? "result = " : ""  %><%= newCollection %>dataProvider.<%= GetClassName(SourceView, ClassNameFormat.Provider) %>.<%=methodName%>(transactionManager, start, pageLength <%=TransformStoredProcedureInputsToDataAccess(true, command.InputParameters) %>)<%= newCollectionEnd %>;
    
    • Post Points: 35
  • 06-02-2008 12:56 PM In reply to

    • SuperJeffe
    • Top 25 Contributor
    • Joined on 05-05-2006
    • Tulsa, Ok
    • Posts 432
    • Points 10,850

    Re: Paging for a views custom stored procedure

    This should have been fixed in Rev 719.

    jeff

    ----------------------------------------------------------------------
     Member of the .NetTiers team | Visit http://www.nettiers.com
    ----------------------------------------------------------------------

    • Post Points: 5
Page 1 of 1 (2 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems