CodeSmith Community
Your Code. Your Way. Faster!

Setting Connection to DB

Latest post 05-15-2008 4:25 PM by SuperJeffe. 1 replies.
  • 05-15-2008 8:25 AM

    Setting Connection to DB

    Hi,

     

    I just made the first steps with that framework.

    the service:

    View_EmployeeSkillService view_Service 

     

     

    Now I want to test my query to a view.

    View_EmployeeSkillParameterBuilder searchQuery = new View_EmployeeSkillParameterBuilder(); 

    in a method I built the Query

     

    view_Service.Find(searchQuery.GetParameters()).ToArray<View_EmployeeSkill>() 

    So for running that last  command I need to 'organize' the connection to Database. 

     Is it correct to set the connetion with DataRepository.AddConnection("ConnectionName","connectionString") ?

    after I stooped seeking and started asking. How can I start connect to DB? (and before that test the connection?)

    How do I set the service to that connection? thanks

     

    Greeting,

    dunkelelb 

     

     

     

     

     

     

     

     

     

     

     

    • Post Points: 35
  • 05-15-2008 4:25 PM In reply to

    • SuperJeffe
    • Top 25 Contributor
    • Joined on 05-05-2006
    • Tulsa, Ok
    • Posts 332
    • Points 8,380

    Re: Setting Connection to DB

    Reply |Contact |Answer

    Look at this discussion.  I responded to a similar question before.

    http://community.codesmithtools.com/forums/p/8056/29817.aspx#29817

    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