is problem with edit orders, print invoice from order set status at Order > Billing & Shipping. After click to edit order NOP go down. Back button worked, but is unable edit order.
At Log show still same problem > Cannot create a DbSet for 'GiftCardUsageHistory' because this type is not included in the model for the context
System.InvalidOperationException: Cannot create a DbSet for 'GiftCardUsageHistory' because this type is not included in the model for the context.
I had this same issue in a plugin I was creating and found the solution here: https://www.nopcommerce.com/boards/topic/11295/the-entity-type-taxratebycity-is-not-part-of-the-model-for-the-current-context#45961
Problem : it Could be a Main DbContext calling in the class and our own model which are not present in a main DbContext class so error will be occure. Solution : Ok, let me Explain. When we are using a Plugin then make sure that which model we are passing. it should be a our own Objectcontext Or DbContext. this Context class should be in your plugin. then we can Create our Objectcontext or DbContext object using constructor in our new class.
hope, it Would help to everyone who are facing this issues.....
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.