in

dashCommerce

An ASP.NET Open Source e-Commerce Application

Subsonic

Last post 03-27-2008 4:02 PM by yitzchok. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 02-28-2008 9:50 AM

    • Dick
    • Top 10 Contributor
    • Joined on 02-11-2008
    • Posts 102
    • dashCommerce Core Team
      Moderator

    Subsonic

    Chris,

     Can you tell me what command arguments you use to generate all the files?

     I currently have this;

    "C:\Program Files\SubSonic\SubSonic 2.0.3\SubCommander\sonic.exe" generate /server SERVER /db DB /userid USER /password PASS /out Generated /generatedNamespace MettleSystems.dashCommerce.Store /provider dashCommerceProvider /stripTableText dashCommerce_Store_  /excludeTableList aspnet_
    pause

    move /Y Generated\*Controller.cs dashCommerce\Store\Controllers\Generated
    pause

    move /Y Generated\*.cs dashCommerce\Store\Models\Generated
    pause

     

     This goes well, apart from the StoredProcedures.cs which goes wrong... it doesnt contain the methods yours contains.

     Thank you!

  • 02-28-2008 11:07 AM In reply to

    Re: Subsonic

    "C:\Program Files\SubSonic\SubSonic 2.0.3\SubCommander\sonic.exe" generate /out "$(ProjectDir)Models\Generated" /config "$(ProjectDir)"

    You have to change the app.config files (store, core) to the connection string that you want
    /config will pick up the configuration from the app.config file or web.config
    /excludeTableList No need for this since if there is an includeTableList then it drops exclude.
    replace $(ProjectDir) with the project path.
    Find a bug? Create a Work Item for a fast response.. Want to help? Create a patch for us!
  • 03-27-2008 3:53 PM In reply to

    Re: Subsonic

    How do you do this in App.config file?

    move /Y Generated\*Controller.cs dashCommerce\Store\Controllers\Generated
    pause

    move /Y Generated\*.cs dashCommerce\Store\Models\Generated
    pause

     Thanks!

     

  • 03-27-2008 4:02 PM In reply to

    Re: Subsonic

    Something like this

    "C:\Program Files\SubSonic\SubSonic 2.0.3\SubCommander\sonic.exe" generate /out "LocationToStoreIt" /config "C:\dashCommerce\Store\"
    This will pick up the app.config or web.config in the /config directory

     

    If you are talking about putting this in to the app.config file there is no such way.

    Find a bug? Create a Work Item for a fast response.. Want to help? Create a patch for us!
Page 1 of 1 (4 items)