CodeSmith Community
Your Code. Your Way. Faster!

How to move DataAccess to custom Controls?

Latest post 04-03-2007 4:10 PM by ecathell. 1 replies.
  • 04-03-2007 3:45 PM

    • ecathell
    • Top 50 Contributor
    • Joined on 06-07-2005
    • Delaware
    • Posts 104
    • Points 2,270

    How to move DataAccess to custom Controls?

    I have separate controller classes for accessing the ServiceLayer Componentlayer. Each controller class simply has a shared method that returns the necessary information from within the servicelayers. Previously I have kept these under the GUI project in a separate folder. It has come to the point that I need to move these into their own assembly for access from some windows custom controls I am writing. Basically I want all the functionality hidden in the controls. So I have 3 projects(not counting nettiers)

    GUI
    Controls
    Controllers

    GUI had the app.config and entlib.config files. When I had the controllers inside that project everything was working fine. Now that I have moved them out to their own project, I am getting nullreference exceptions. I am sure this is being caused by the app.config files not generating properly now, but I am not really sure how to fix this so that the controllers are controlling access to the datalayer as they should be.

    • Post Points: 5
  • 04-03-2007 4:10 PM In reply to

    • ecathell
    • Top 50 Contributor
    • Joined on 06-07-2005
    • Delaware
    • Posts 104
    • Points 2,270

    Re: How to move DataAccess to custom Controls?

    I have been fortunate enough to find a solution(workaround?) to this issue.

     

    You must define a common build folder for your entire solution. I dont normally do this, but I guess i will have to start.

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