1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Use DataConfig.config

Use DataConfig.config

3 posts, 0 answered
  1. Siddesh Kapadi
    Siddesh Kapadi avatar
    239 posts
    Registered:
    09 Oct 2009
    05 Jun 2012
    Link to this post
    Hi Team Telerik,

    We have few custom modules and some custom DAL AND BAL layer in our project. So, instead of using the existing way of creating connection string in web.config, can we use the connection string from Dataconfig.config?

    Regards,
    Siddesh Kapadi
  2. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    05 Jun 2012
    Link to this post
    Easily! :)

    Here's how...just use the DataConfig object
  3. Siddesh Kapadi
    Siddesh Kapadi avatar
    239 posts
    Registered:
    09 Oct 2009
    07 Jun 2012
    Link to this post
    HI Steve,

    Thanks for your response. As I have different Class libraries for DAL and BAL. Shouldnt Data.Config be there in those class Libraries?

    If yes, How do we access the custom sitefinity code you specified in the link be added to libraries outside sitefinity project?

    Regards,
    Siddesh Kapadi
3 posts, 0 answered