I am implementing the custom url rewriting provider listed at http://wiki.ablecommerce.com/index.php/ ... ovider_API
I'd like to access a table in the db using a technique similar to the one here: http://wiki.ablecommerce.com/index.php/Custom_Queries
The problem is when I use the Token class from the sample project the Instance property doesn't contain a reference to the Database property.
I added the sample project to the solution for my site and then I tried adding several of the CommerceBuilder dll's as references in the sampleproject but I still can't get to the Database property.
Is there a way to do this?
Accessing Database from a separate project
Re: Accessing Database from a separate project
Give a try by using token like this
Code: Select all
CommerceBuilder.Common.Token.Instance.Database;
hope this helps!
__________________
s_ismail

AbleCommerce Customization
Free Plugins and Add-Ons
AbleCommerce Plugins and Add-Ons
Plugables Blog
__________________
s_ismail


AbleCommerce Customization
Free Plugins and Add-Ons
AbleCommerce Plugins and Add-Ons
Plugables Blog