Use DataConfig.config

Posted by Community Admin on 04-Aug-2018 11:02

Use DataConfig.config

All Replies

Posted by Community Admin on 05-Jun-2012 00:00

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

Posted by Community Admin on 05-Jun-2012 00:00

Easily! :)

Here's how...just use the DataConfig object

Posted by Community Admin on 07-Jun-2012 00:00

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

This thread is closed