API Questions on Kentico API.
Version 6.x > API > new TreeProvider(UserInfo, GeneralConnection) obselete View modes: 
User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 6/5/2013 11:21:21 PM
   
new TreeProvider(UserInfo, GeneralConnection) obselete
What replaces:
TreeProvider tree = new TreeProvider(ui, ConnectionHelper.GetConnection(ConfigurationManager.ConnectionStrings["OldCMSConnectionString"].ConnectionString));
in v6?

Or better yet, I have two instances of Kentico (v6) I need to connect to. One is where the code will run (CMSConnectionString) and the other will have content in a different database (OldCMSConnectionString). How can I specify which connection string I want the TreeProvider to use when performing my tree.SelectNodes() action since that method is obselete?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 6/6/2013 2:16:51 AM
   
RE:new TreeProvider(UserInfo, GeneralConnection) obselete
Hi,

The replacement is without the connection parameter. You should be able to use the CMSConnectionScope instead as mentioned in the API changes blog post.

Best regards,
Juraj Ondrus