Page 1 of 1

Accessing Database from a separate project

Posted: Fri Nov 19, 2010 11:39 am
by jsmits
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?

Re: Accessing Database from a separate project

Posted: Mon Nov 22, 2010 3:01 am
by s_ismail
Give a try by using token like this

Code: Select all

CommerceBuilder.Common.Token.Instance.Database;