SubSonic Forums
All Your Database Are Belong To Us

Problem building DAL as class lib

Latest post 11-06-2008 5:18 AM by ranomore. 3 replies.
  • 11-04-2008 5:24 PM

    Problem building DAL as class lib

    Newby warning.  Reviewing product.  Looks great!  But question:

    Followed webcast on setting up subcommander and all works fine generating and pulling into web app.

    But when I add a class lib project to the same solution, set up the reference, build and value an app.config file, and generate, it looks like there are references to System.Web.UI in various places.  I am using the same config info that I generated via SubStage and plugged into the web.config.

    What newby mistake am I making?

    Thx.

     

  • 11-04-2008 5:32 PM In reply to

    Re: Problem building DAL as class lib

    To put the SubSonic generated code in a Class library you have to add a reference to System.Configuration and System.Web

    You can check out SubSonic.Tests project to see how to setup the App.Config file

    If I am I because I am I, and You are You because You are You, then I am I, and you are you. But If I am I because You are You, and You are You because I am I, then I am not I and You are not You. -Rabbi of Kotzk

  • 11-04-2008 5:45 PM In reply to

    Re: Problem building DAL as class lib

     That got it thx.  Bummer though... DAL will have references to system.web.ui stuff?

    Thx.

     

  • 11-06-2008 5:18 AM In reply to

    • ranomore
    • Top 10 Contributor
    • Joined on 11-05-2007
    • Salt Lake City
    • Posts 322

    Re: Problem building DAL as class lib

    ksuvalk:
    Bummer though... DAL will have references to system.web.ui stuff?

    See here: http://forums.subsonicproject.com/forums/p/3906/15917.aspx#15917

Page 1 of 1 (4 items) | RSS