I am using nopCommerce 4.10 version and i have created one new plugin which works perfectly if i am use lambda expression (existing structure) for getting data from database but while using Store Procedure it's not working. Below is my code for getting data also i have already use dependency register, context and everything which required but still i am missing to register my new class?
var query=_dbContext.EntityFromSql<myclassname>("my_sp_name", param1,param2).ToList();
Getting error : 'Cannot create a DbSet for 'myclassname' because this type is not included in the model for the context.'
Note: I have built the same structure as existing nopCommerce.