I'm new for nopCommerce. I want to extend PriceCalculationService and for a lot of reasons I must use dbContext to call directly a TVF Function. I have already added ref to CodeFirstStoreFunctions (https://github.com/moozzyk/CodeFirstFunctions) and done some modify to OnModelCreating (NopObjectContext). Now question is: how can I call dbContext from PriceCalculationService / GetFinalPrice to call my TVF function ? Thanks in advance for response.
Thanks, but i think you are minusunderstanging my question.
The problem is:
if i added a new column named "abc" in "Product" entity to be used with a new plugin how can i be sure that nop team, in the future, not use a new column named with same name ("abc") and therefore make a conflict ?
Yes, someone can think: you can obtain Tax Id by value stored in Product entity . . . but this is wrong because if, for example, an order submitted 6 months ago had a product with tax of 10% today same product could have a different tax !