Is it possible to "hack" into Umbraco and obtain a DbConnection? I need to create some custom tables and access them, but they will be in the same database as Umbraco itself. I think it would be unnecessary to add my own connection string and DbProviderFactory to the Web.config, since Umbraco is most likely already doing this stuff somewhere behind the scenes.
Obtaining a DbConnection through Umbraco
Is it possible to "hack" into Umbraco and obtain a DbConnection? I need to create some custom tables and access them, but they will be in the same database as Umbraco itself. I think it would be unnecessary to add my own connection string and DbProviderFactory to the Web.config, since Umbraco is most likely already doing this stuff somewhere behind the scenes.
Hi Gert,
Yes, you can use: umbraco.BusinessLogic.Application.SqlHelper
HTH,
Hendy
Yeah, I also found out myself, once I tried googling a little differently... :-/ But thanks anyway! :-D
is working on a reply...