SubSonic Forums
All Your Database Are Belong To Us

not generating code for stored procedure

Latest post 08-28-2008 2:31 AM by DarkStar. 3 replies.
  • 07-20-2008 3:20 AM

    not generating code for stored procedure

    I'm using subsonic 2.1,  I have used substage and subcommader, both a re not generating code for strored procedures.  I'm uaiing mysql with innodb provide.

  • 07-31-2008 9:08 AM In reply to

    Re: not generating code for stored procedure

    Same here, sonic.exe doesn't generate code for MySQL stored procedures, I tried with SubStage to get the same result.

  • 08-27-2008 4:45 PM In reply to

    • Fordy
    • Not Ranked
    • Joined on 08-27-2008
    • Posts 2

    Re: not generating code for stored procedure

    I had the same problem : no stored procedure methods in StoredProcedures.cs . It was empty except for the "using.."  statements. I was also in  MYSQL too.

    After a bit digging I found the problem in the source code.  Dataservice.cs has the following line  :

    sp.SchemaName = rdr["SPSchema"].ToString();

    It's at line number 412 (ish) in GetSPSchemaCollection

     

    This line causes an error and stops generation of the methods in StoredProcedures.cs . Simply remove the line, as SPSschema is not even in the data reader rdr,  and rebuild the solution. Then the methods will appear.

    A similar problem was found with the Oracle provider, it has been logged at http://www.codeplex.com/subsonic/WorkItem/View.aspx?WorkItemId=17986 and it's been fixed too.

     

  • 08-28-2008 2:31 AM In reply to

    Re: not generating code for stored procedure

    Great, I hope this gets updated in the trunk now. For now I have my own class for stored procedures and I coded the methods by hand. Indifferent

Page 1 of 1 (4 items) | RSS