I want to add a new table (e.g. for product volume discounts). I would like to be able to access the new table as part of the object model. I would also like the admin editor to be able to pick up the new table for user input purposes.
What needs to be changed to recognise the new table?
I can add 'whatever.cs' to the 'Core' project. Do I then add an entry into 'DSCCom.dbml'? What else?
I think I can use:
DSCComDataContext dc = DSCComDataContext.GetDataContext();
to get access to the database say for a query, but I noticed another user used something like:
DiscountsDataContext db =
new DiscountsDataContext(ConfigurationController.SiteConfigurationController.GetSiteConnectionString(SiteNavigation.GetHost()));
Is the best way forward something like that and can you provide a brief example?
Thanks.
|